{"action":"closed","issue":{"url":"https://api.github.com/repos/csscomb/csscomb.js/issues/366","labels_url":"https://api.github.com/repos/csscomb/csscomb.js/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/csscomb/csscomb.js/issues/366/comments","events_url":"https://api.github.com/repos/csscomb/csscomb.js/issues/366/events","html_url":"https://github.com/csscomb/csscomb.js/issues/366","id":68936502,"number":366,"title":"Properties of the same name should stay in the same order.","user":{"login":"tjbenton","id":4776422,"avatar_url":"https://avatars.githubusercontent.com/u/4776422?v=3","gravatar_id":"","url":"https://api.github.com/users/tjbenton","html_url":"https://github.com/tjbenton","followers_url":"https://api.github.com/users/tjbenton/followers","following_url":"https://api.github.com/users/tjbenton/following{/other_user}","gists_url":"https://api.github.com/users/tjbenton/gists{/gist_id}","starred_url":"https://api.github.com/users/tjbenton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjbenton/subscriptions","organizations_url":"https://api.github.com/users/tjbenton/orgs","repos_url":"https://api.github.com/users/tjbenton/repos","events_url":"https://api.github.com/users/tjbenton/events{/privacy}","received_events_url":"https://api.github.com/users/tjbenton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-16T14:30:39Z","updated_at":"2015-06-09T21:25:32Z","closed_at":"2015-06-09T21:25:32Z","body":"I'm having an issue with csscomb reordering the same property when it shouldn't. The biggest issue is when dealing with @font-face\r\n\r\nThis is what is put in.\r\n```scss\r\n@font-face {\r\n  font-family: \"FontAwesome\";\r\n  src: url(\"#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}\");\r\n  src: url(\"#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}\") format(\"embedded-opentype\"), url(\"#{$fa-font-path}/fontawesome-webfont.woff2?v=#{$fa-version}\") format(\"woff2\"), url(\"#{$fa-font-path}/fontawesome-webfont.woff?v=#{$fa-version}\") format(\"woff\"), url(\"#{$fa-font-path}/fontawesome-webfont.ttf?v=#{$fa-version}\") format(\"truetype\"), url(\"#{$fa-font-path}/fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular\") format(\"svg\");\r\n  src: url(\"#{$fa-font-path}/FontAwesome.otf\") format(\"opentype\"); // used when developing fonts\r\n  font-weight: normal;\r\n  font-style: normal;\r\n}\r\n```\r\n**Note:** the order of the `src` properties.\r\n`src: *.eot`\r\n`src: *.eot#iefix, *.woff2, *.woff, *.ttf, *.svg`\r\n`src: *.otf`\r\n\r\n\r\nThis is what what csscomb outputs\r\n```css\r\n@font-face{\r\n font-family: \"FontAwesome\";\r\n font-style: normal;\r\n font-weight: normal;\r\n\r\n src: url(\"../font/font-awesome/FontAwesome.otf\") format(\"opentype\");\r\n src: url(\"../font/font-awesome/fontawesome-webfont.eot?#iefix&v=4.3.0\") format(\"embedded-opentype\"), url(\"../font/font-awesome/fontawesome-webfont.woff2?v=4.3.0\") format(\"woff2\"), url(\"../font/font-awesome/fontawesome-webfont.woff?v=4.3.0\") format(\"woff\"), url(\"../font/font-awesome/fontawesome-webfont.ttf?v=4.3.0\") format(\"truetype\"), url(\"../font/font-awesome/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular\") format(\"svg\");\r\n src: url(\"../font/font-awesome/fontawesome-webfont.eot?v=4.3.0\");\r\n}\r\n```\r\n**Note:** the order of the `src` properties.\r\n`src: *.otf`\r\n`src: *.eot#iefix, *.woff2, *.woff, *.ttf, *.svg`\r\n`src: *.eot`\r\n\r\n\r\nThis happens when `\"sort-order-fallback\": \"abc\"` is set because it tries to put them in alphabetical order which is awesome, however it shouldn't try to alphabetize them based off of their values only their properties, and it shouldn't reorganize properties that are the same.\r\n\r\n\r\nLuckily I was able to fix this problem by just adding  `\"src\"` to the `\"sort-order\"` array but I figured I'd bring this issue up incase anyone else runs across the same problem trying to figure out why their @font-face isn't working correctly.\r\n\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/11289439-properties-of-the-same-name-should-stay-in-the-same-order?utm_campaign=plugin&utm_content=tracker%2F214563&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F214563&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}