{"action":"created","issue":{"url":"https://api.github.com/repos/tinganho/l10ns/issues/99","labels_url":"https://api.github.com/repos/tinganho/l10ns/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/tinganho/l10ns/issues/99/comments","events_url":"https://api.github.com/repos/tinganho/l10ns/issues/99/events","html_url":"https://github.com/tinganho/l10ns/issues/99","id":60570375,"number":99,"title":"unstable sorting of files list in json files creates SCM noise","user":{"login":"focusaurus","id":482377,"avatar_url":"https://avatars.githubusercontent.com/u/482377?v=3","gravatar_id":"","url":"https://api.github.com/users/focusaurus","html_url":"https://github.com/focusaurus","followers_url":"https://api.github.com/users/focusaurus/followers","following_url":"https://api.github.com/users/focusaurus/following{/other_user}","gists_url":"https://api.github.com/users/focusaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/focusaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/focusaurus/subscriptions","organizations_url":"https://api.github.com/users/focusaurus/orgs","repos_url":"https://api.github.com/users/focusaurus/repos","events_url":"https://api.github.com/users/focusaurus/events{/privacy}","received_events_url":"https://api.github.com/users/focusaurus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tinganho/l10ns/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-10T21:13:01Z","updated_at":"2015-03-12T19:16:07Z","closed_at":null,"body":"I am seeing my localization json files change just due to the `files` property not being deterministically sorted. For example:\r\n\r\n```\r\n     \"files\": [\r\n-      \"app/account/confirm-payment.jade\",\r\n       \"app/account/billing.jade\",\r\n+      \"app/account/confirm-payment.jade\",\r\n       \"app/register/confirm-payment.jade\"\r\n     ],\r\n```\r\n\r\nCould this be sorted so it's stable in git unless a meaningful change happens?"},"comment":{"url":"https://api.github.com/repos/tinganho/l10ns/issues/comments/78576562","html_url":"https://github.com/tinganho/l10ns/issues/99#issuecomment-78576562","issue_url":"https://api.github.com/repos/tinganho/l10ns/issues/99","id":78576562,"user":{"login":"focusaurus","id":482377,"avatar_url":"https://avatars.githubusercontent.com/u/482377?v=3","gravatar_id":"","url":"https://api.github.com/users/focusaurus","html_url":"https://github.com/focusaurus","followers_url":"https://api.github.com/users/focusaurus/followers","following_url":"https://api.github.com/users/focusaurus/following{/other_user}","gists_url":"https://api.github.com/users/focusaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/focusaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/focusaurus/subscriptions","organizations_url":"https://api.github.com/users/focusaurus/orgs","repos_url":"https://api.github.com/users/focusaurus/repos","events_url":"https://api.github.com/users/focusaurus/events{/privacy}","received_events_url":"https://api.github.com/users/focusaurus/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T19:16:07Z","updated_at":"2015-03-12T19:16:07Z","body":"FYI this is on OSX. Maybe the case-insensitivity of the OSX filesystem is somehow weirdly involved? Just a hunch. In any case, this seems consistently reproducible for me.\r\n\r\nI suspect this string subtraction is the problem:\r\n\r\nhttps://github.com/tinganho/l10ns/commit/e8a821d09f24ad34041569e78c377e2ca8d96d12#diff-3693763d79803fa299e19d7b7fb53d62R77\r\n\r\n```\r\n> \"a\" - \"b\"\r\nNaN\r\n> \"b\" - \"a\"\r\nNaN\r\n> \"a\" > \"b\"\r\nfalse\r\n> \"b\" > \"a\"\r\ntrue\r\n```\r\n"}}