{"action":"created","issue":{"url":"https://api.github.com/repos/bigdatahci2015/forum/issues/15","labels_url":"https://api.github.com/repos/bigdatahci2015/forum/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/bigdatahci2015/forum/issues/15/comments","events_url":"https://api.github.com/repos/bigdatahci2015/forum/issues/15/events","html_url":"https://github.com/bigdatahci2015/forum/issues/15","id":106688522,"number":15,"title":"Sorting a key-value object","user":{"login":"KevinKGifford","id":13951238,"avatar_url":"https://avatars.githubusercontent.com/u/13951238?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinKGifford","html_url":"https://github.com/KevinKGifford","followers_url":"https://api.github.com/users/KevinKGifford/followers","following_url":"https://api.github.com/users/KevinKGifford/following{/other_user}","gists_url":"https://api.github.com/users/KevinKGifford/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinKGifford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinKGifford/subscriptions","organizations_url":"https://api.github.com/users/KevinKGifford/orgs","repos_url":"https://api.github.com/users/KevinKGifford/repos","events_url":"https://api.github.com/users/KevinKGifford/events{/privacy}","received_events_url":"https://api.github.com/users/KevinKGifford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-16T03:02:04Z","updated_at":"2015-09-16T03:21:04Z","closed_at":null,"body":"Is it permissible/doable to sort a key-value object?  I have the following as an object from _.mapValues():\r\n\r\n{\r\n \"ASEN\": 4.9,\r\n \"CHEN\": 4.42,\r\n \"CSCI\": 4.55,\r\n \"CVEN\": 4.87,\r\n \"ECEN\": 4.57,\r\n \"EMEN\": 4.97,\r\n \"ENGR\": 4.74,\r\n \"EVEN\": 4.69,\r\n \"HUEN\": 5.37,\r\n \"MCEN\": 4.48,\r\n \"TLEN\": 4.82\r\n}\r\n\r\nEasy enough to display in a table, but I'd like to sort the table entries (rows) based on the value of the key (so \"HUEN\": 5.37 would be the first row and \"CHEN\": 4.42 would be the last of the 11 rows).  Any suggestions would be appreciated."},"comment":{"url":"https://api.github.com/repos/bigdatahci2015/forum/issues/comments/140614729","html_url":"https://github.com/bigdatahci2015/forum/issues/15#issuecomment-140614729","issue_url":"https://api.github.com/repos/bigdatahci2015/forum/issues/15","id":140614729,"user":{"login":"doubleshow","id":129562,"avatar_url":"https://avatars.githubusercontent.com/u/129562?v=3","gravatar_id":"","url":"https://api.github.com/users/doubleshow","html_url":"https://github.com/doubleshow","followers_url":"https://api.github.com/users/doubleshow/followers","following_url":"https://api.github.com/users/doubleshow/following{/other_user}","gists_url":"https://api.github.com/users/doubleshow/gists{/gist_id}","starred_url":"https://api.github.com/users/doubleshow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doubleshow/subscriptions","organizations_url":"https://api.github.com/users/doubleshow/orgs","repos_url":"https://api.github.com/users/doubleshow/repos","events_url":"https://api.github.com/users/doubleshow/events{/privacy}","received_events_url":"https://api.github.com/users/doubleshow/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T03:21:04Z","updated_at":"2015-09-16T03:21:04Z","body":"You will need to first use _.paris to convert this object to an array form, like\r\n\r\n[ ['ASEN', 4.9], ['CHEN', 4.42], ....] \r\n\r\nthen you can use `_.sortBy` to operate on this array"}}