{"action":"created","issue":{"url":"https://api.github.com/repos/modxcms/revolution/issues/12569","labels_url":"https://api.github.com/repos/modxcms/revolution/issues/12569/labels{/name}","comments_url":"https://api.github.com/repos/modxcms/revolution/issues/12569/comments","events_url":"https://api.github.com/repos/modxcms/revolution/issues/12569/events","html_url":"https://github.com/modxcms/revolution/issues/12569","id":102094528,"number":12569,"title":"Tag order from GitHub incorrect","user":{"login":"BobRay","id":335010,"avatar_url":"https://avatars.githubusercontent.com/u/335010?v=3","gravatar_id":"","url":"https://api.github.com/users/BobRay","html_url":"https://github.com/BobRay","followers_url":"https://api.github.com/users/BobRay/followers","following_url":"https://api.github.com/users/BobRay/following{/other_user}","gists_url":"https://api.github.com/users/BobRay/gists{/gist_id}","starred_url":"https://api.github.com/users/BobRay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BobRay/subscriptions","organizations_url":"https://api.github.com/users/BobRay/orgs","repos_url":"https://api.github.com/users/BobRay/repos","events_url":"https://api.github.com/users/BobRay/events{/privacy}","received_events_url":"https://api.github.com/users/BobRay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-20T08:57:27Z","updated_at":"2015-08-20T21:22:47Z","closed_at":null,"body":"This is more a curiosity than a bug.\r\n\r\nGetting the tag versions from GitHub with a cUrL call to https://api.github.com/repos/modxcms/revolution/tags has always returned the latest version as the first member of the array.\r\n\r\nCurrently, 2.4.0-rc and 2.4.0-pl are reversed -- 2.4.0-rc is first in the array. (Try pasting the URL above in a browser to see it.)\r\n\r\nI need to get the latest version. It's not a big deal -- I can sort them in less than a millisecond with a custom insertion sort and version_compare(), but if anyone else is counting on them being in order, they may not notice the reversal and could run into trouble (I think the MODX install script, for example, will not have the latest stable version at the top of the list), and I'm curious about how this happened."},"comment":{"url":"https://api.github.com/repos/modxcms/revolution/issues/comments/133180234","html_url":"https://github.com/modxcms/revolution/issues/12569#issuecomment-133180234","issue_url":"https://api.github.com/repos/modxcms/revolution/issues/12569","id":133180234,"user":{"login":"BobRay","id":335010,"avatar_url":"https://avatars.githubusercontent.com/u/335010?v=3","gravatar_id":"","url":"https://api.github.com/users/BobRay","html_url":"https://github.com/BobRay","followers_url":"https://api.github.com/users/BobRay/followers","following_url":"https://api.github.com/users/BobRay/following{/other_user}","gists_url":"https://api.github.com/users/BobRay/gists{/gist_id}","starred_url":"https://api.github.com/users/BobRay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BobRay/subscriptions","organizations_url":"https://api.github.com/users/BobRay/orgs","repos_url":"https://api.github.com/users/BobRay/repos","events_url":"https://api.github.com/users/BobRay/events{/privacy}","received_events_url":"https://api.github.com/users/BobRay/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T21:22:47Z","updated_at":"2015-08-20T21:22:47Z","body":"I'm pretty sure it's fixable by deleting and re-creating the pl tag, though doing some trials on a test repo would probably be a good idea. \r\n\r\nI'm guessing wildly here:\r\n\r\ngit checkout V2.4.0-pl\r\n\r\ngit tag -d v2.4.0-pl\r\ngit push origin :refs/tags/v2.4.0-pl\r\n\r\ngit tag v2.4.o-pl\r\ngit push origin :refs/tags/v2.4.0-pl\r\n\r\ngit checkout HEAD\r\n\r\n\r\n\r\nRecreate tag, and push again\r\n\r\n"}}