{"action":"created","issue":{"url":"https://api.github.com/repos/antirez/redis/issues/223","labels_url":"https://api.github.com/repos/antirez/redis/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/antirez/redis/issues/223/comments","events_url":"https://api.github.com/repos/antirez/redis/issues/223/events","html_url":"https://github.com/antirez/redis/issues/223","id":2411839,"number":223,"title":"New Feature: Multiple BY patterns in SORT Command","user":{"login":"idaunis","id":578663,"avatar_url":"https://avatars.githubusercontent.com/u/578663?v=3","gravatar_id":"","url":"https://api.github.com/users/idaunis","html_url":"https://github.com/idaunis","followers_url":"https://api.github.com/users/idaunis/followers","following_url":"https://api.github.com/users/idaunis/following{/other_user}","gists_url":"https://api.github.com/users/idaunis/gists{/gist_id}","starred_url":"https://api.github.com/users/idaunis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idaunis/subscriptions","organizations_url":"https://api.github.com/users/idaunis/orgs","repos_url":"https://api.github.com/users/idaunis/repos","events_url":"https://api.github.com/users/idaunis/events{/privacy}","received_events_url":"https://api.github.com/users/idaunis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/antirez/redis/labels/state-proposed-feature","name":"state-proposed-feature","color":"f172e8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2011-12-01T07:15:42Z","updated_at":"2015-10-27T20:28:20Z","closed_at":"2014-07-21T21:10:55Z","body":"[This is the link to the patch] (https://github.com/idaunis/redis/commit/3dec61d4ce5a8cf744c0c132c4e5c5c2e2300914) \r\n\r\nWith this feature Redis will expand the applications in numerous scenarios where right now can only be performed in an SQL-like environment.\r\n\r\n**SORT Command Usage**\r\nSORT key [BY pattern [ASC|DESC] [ALPHA] [BY pattern…]] [LIMIT offset count] [GET pattern [GET pattern ...]] [STORE destination]\r\n\r\n**Documentation**\r\nThe BY option can be used multiple times in order to sort by multiple fields. If the list elements have the same value when ordering by the first BY pattern, then it sorts by the second BY pattern and so on.\r\n\r\nThe following example will order the list mylist by weight and by title. Sorting first the list of elements by weight, and then by title when the elements have the same weight:\r\n\r\nSORT mylist BY weight_* BY title_* ALPHA\r\n"},"comment":{"url":"https://api.github.com/repos/antirez/redis/issues/comments/151634184","html_url":"https://github.com/antirez/redis/issues/223#issuecomment-151634184","issue_url":"https://api.github.com/repos/antirez/redis/issues/223","id":151634184,"user":{"login":"emiltin","id":66034,"avatar_url":"https://avatars.githubusercontent.com/u/66034?v=3","gravatar_id":"","url":"https://api.github.com/users/emiltin","html_url":"https://github.com/emiltin","followers_url":"https://api.github.com/users/emiltin/followers","following_url":"https://api.github.com/users/emiltin/following{/other_user}","gists_url":"https://api.github.com/users/emiltin/gists{/gist_id}","starred_url":"https://api.github.com/users/emiltin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emiltin/subscriptions","organizations_url":"https://api.github.com/users/emiltin/orgs","repos_url":"https://api.github.com/users/emiltin/repos","events_url":"https://api.github.com/users/emiltin/events{/privacy}","received_events_url":"https://api.github.com/users/emiltin/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T20:28:20Z","updated_at":"2015-10-27T20:28:20Z","body":"what happened to this? seems very useful!"}}