{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/156","labels_url":"https://api.github.com/repos/mholt/caddy/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/156/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/156/events","html_url":"https://github.com/mholt/caddy/pull/156","id":89686264,"number":156,"title":"Implement sorting for \"browse\"","user":{"login":"pyed","id":1909519,"avatar_url":"https://avatars.githubusercontent.com/u/1909519?v=3","gravatar_id":"","url":"https://api.github.com/users/pyed","html_url":"https://github.com/pyed","followers_url":"https://api.github.com/users/pyed/followers","following_url":"https://api.github.com/users/pyed/following{/other_user}","gists_url":"https://api.github.com/users/pyed/gists{/gist_id}","starred_url":"https://api.github.com/users/pyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyed/subscriptions","organizations_url":"https://api.github.com/users/pyed/orgs","repos_url":"https://api.github.com/users/pyed/repos","events_url":"https://api.github.com/users/pyed/events{/privacy}","received_events_url":"https://api.github.com/users/pyed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-19T23:56:07Z","updated_at":"2015-06-20T19:30:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mholt/caddy/pulls/156","html_url":"https://github.com/mholt/caddy/pull/156","diff_url":"https://github.com/mholt/caddy/pull/156.diff","patch_url":"https://github.com/mholt/caddy/pull/156.patch"},"body":"now you can click on `Name`, `Size` or `Modified` to sort the listing"},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/113809222","html_url":"https://github.com/mholt/caddy/pull/156#issuecomment-113809222","issue_url":"https://api.github.com/repos/mholt/caddy/issues/156","id":113809222,"user":{"login":"holizz","id":9224,"avatar_url":"https://avatars.githubusercontent.com/u/9224?v=3","gravatar_id":"","url":"https://api.github.com/users/holizz","html_url":"https://github.com/holizz","followers_url":"https://api.github.com/users/holizz/followers","following_url":"https://api.github.com/users/holizz/following{/other_user}","gists_url":"https://api.github.com/users/holizz/gists{/gist_id}","starred_url":"https://api.github.com/users/holizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holizz/subscriptions","organizations_url":"https://api.github.com/users/holizz/orgs","repos_url":"https://api.github.com/users/holizz/repos","events_url":"https://api.github.com/users/holizz/events{/privacy}","received_events_url":"https://api.github.com/users/holizz/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T19:30:07Z","updated_at":"2015-06-20T19:30:07Z","body":"@mholt Nope.\r\n\r\nApparently [File.ReadDir()](https://golang.org/pkg/os/#File.Readdir) returns its values \"in directory order\". And [according to StackExchange](http://unix.stackexchange.com/questions/13451/what-is-the-directory-order-of-files-in-a-directory-used-by-ls-u) \"directory order\" depends on which filesystem you're using.\r\n\r\nUsing btrfs and I can easily reproduce it by running \"touch 3 2 1\" which causes caddy to display the files in reverse-alphabetical order. But if I run \"rm 1 2 3 && touch 1 2 3\" it displays them in alphabetical order. If I try that experiment on ext4 it always display them in reverse-alphabetical order."}}