{"action":"created","issue":{"url":"https://api.github.com/repos/magnars/dash.el/issues/156","labels_url":"https://api.github.com/repos/magnars/dash.el/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/magnars/dash.el/issues/156/comments","events_url":"https://api.github.com/repos/magnars/dash.el/issues/156/events","html_url":"https://github.com/magnars/dash.el/issues/156","id":103345991,"number":156,"title":"FR: -sort-keyed","user":{"login":"doublep","id":231301,"avatar_url":"https://avatars.githubusercontent.com/u/231301?v=3","gravatar_id":"","url":"https://api.github.com/users/doublep","html_url":"https://github.com/doublep","followers_url":"https://api.github.com/users/doublep/followers","following_url":"https://api.github.com/users/doublep/following{/other_user}","gists_url":"https://api.github.com/users/doublep/gists{/gist_id}","starred_url":"https://api.github.com/users/doublep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doublep/subscriptions","organizations_url":"https://api.github.com/users/doublep/orgs","repos_url":"https://api.github.com/users/doublep/repos","events_url":"https://api.github.com/users/doublep/events{/privacy}","received_events_url":"https://api.github.com/users/doublep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-26T19:23:14Z","updated_at":"2015-08-26T19:34:05Z","closed_at":null,"body":"I have already written the function, but then noticed in the docs that it can easily be composed from existing stuff:\r\n\r\n    (-sort-keyed key-computer comparator list) <==> (-sort (-on comparator key-computer) list)\r\n\r\nTherefore I didn't finish my work and decided to ask if it is wanted first.\r\n\r\nI still think that the function is useful:\r\n\r\n* it calls `key-comparator` exactly `N` times, while existing function calls it `O (N log N)` times, which makes a significant difference if `N` is large and `key-computer` is non-trivial;\r\n* its invocation is arguably easier to understand.\r\n\r\nIf this function is wanted, I can finish what I started with documentation and tests."},"comment":{"url":"https://api.github.com/repos/magnars/dash.el/issues/comments/135147674","html_url":"https://github.com/magnars/dash.el/issues/156#issuecomment-135147674","issue_url":"https://api.github.com/repos/magnars/dash.el/issues/156","id":135147674,"user":{"login":"Fuco1","id":2664959,"avatar_url":"https://avatars.githubusercontent.com/u/2664959?v=3","gravatar_id":"","url":"https://api.github.com/users/Fuco1","html_url":"https://github.com/Fuco1","followers_url":"https://api.github.com/users/Fuco1/followers","following_url":"https://api.github.com/users/Fuco1/following{/other_user}","gists_url":"https://api.github.com/users/Fuco1/gists{/gist_id}","starred_url":"https://api.github.com/users/Fuco1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fuco1/subscriptions","organizations_url":"https://api.github.com/users/Fuco1/orgs","repos_url":"https://api.github.com/users/Fuco1/repos","events_url":"https://api.github.com/users/Fuco1/events{/privacy}","received_events_url":"https://api.github.com/users/Fuco1/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T19:34:05Z","updated_at":"2015-08-26T19:34:05Z","body":"So basically you map, sort with remembering the order and then unmap?"}}