{"action":"created","issue":{"url":"https://api.github.com/repos/tbabej/testmerge2/issues/54","repository_url":"https://api.github.com/repos/tbabej/testmerge2","labels_url":"https://api.github.com/repos/tbabej/testmerge2/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/tbabej/testmerge2/issues/54/comments","events_url":"https://api.github.com/repos/tbabej/testmerge2/issues/54/events","html_url":"https://github.com/tbabej/testmerge2/issues/54","id":294253698,"number":54,"title":"[TW-57] user defined attribute sort order","user":{"login":"tbabej","id":2123868,"avatar_url":"https://avatars2.githubusercontent.com/u/2123868?v=4","gravatar_id":"","url":"https://api.github.com/users/tbabej","html_url":"https://github.com/tbabej","followers_url":"https://api.github.com/users/tbabej/followers","following_url":"https://api.github.com/users/tbabej/following{/other_user}","gists_url":"https://api.github.com/users/tbabej/gists{/gist_id}","starred_url":"https://api.github.com/users/tbabej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbabej/subscriptions","organizations_url":"https://api.github.com/users/tbabej/orgs","repos_url":"https://api.github.com/users/tbabej/repos","events_url":"https://api.github.com/users/tbabej/events{/privacy}","received_events_url":"https://api.github.com/users/tbabej/received_events","type":"User","site_admin":false},"labels":[{"id":826921313,"url":"https://api.github.com/repos/tbabej/testmerge2/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":826924386,"url":"https://api.github.com/repos/tbabej/testmerge2/labels/fixed","name":"fixed","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/tbabej/testmerge2/milestones/20","html_url":"https://github.com/tbabej/testmerge2/milestone/20","labels_url":"https://api.github.com/repos/tbabej/testmerge2/milestones/20/labels","id":3087794,"number":20,"title":"2.4.3","description":null,"creator":{"login":"tbabej","id":2123868,"avatar_url":"https://avatars2.githubusercontent.com/u/2123868?v=4","gravatar_id":"","url":"https://api.github.com/users/tbabej","html_url":"https://github.com/tbabej","followers_url":"https://api.github.com/users/tbabej/followers","following_url":"https://api.github.com/users/tbabej/following{/other_user}","gists_url":"https://api.github.com/users/tbabej/gists{/gist_id}","starred_url":"https://api.github.com/users/tbabej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbabej/subscriptions","organizations_url":"https://api.github.com/users/tbabej/orgs","repos_url":"https://api.github.com/users/tbabej/repos","events_url":"https://api.github.com/users/tbabej/events{/privacy}","received_events_url":"https://api.github.com/users/tbabej/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"open","created_at":"2018-02-05T00:08:10Z","updated_at":"2018-02-05T02:03:58Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2018-02-05T02:03:42Z","updated_at":"2018-02-05T02:05:14Z","closed_at":"2018-02-05T02:03:58Z","author_association":"OWNER","body":"_Max Muller says:_ \n\n For user defined attributes of type \"string\", and which have a defined set of values, tables should be sortable by that uda in the order of the series of values entered the taskrc file. \n\nIn current implementation a defined set of values for a string attribute only seems to be sortable alphabetically. This would make it impossible, for example, to have an attribute such as \"priority\" with options H, M, and L to be implemented as a UDA and sorted appropriately (it would always sort in alphabetical order (so HLM or MLH), not high-->medium-->low.\n\nI think a more intuitive way to sort, and one that would give users more options, would be to simply follow the order the options in the series that are entered into taskrc. So when defining the values possible for \"priority\" in the taskrc file, a user would enter this: uda.priority.values=H,M,L.\n\nAnd that would cause priorities to sort correctly.\n\nAs is, my ambition to replace the concept of \"priority\" with \"urgency\" and \"importance\" on hold as I can't get the values for those UDAs to sort correctly."},"comment":{"url":"https://api.github.com/repos/tbabej/testmerge2/issues/comments/362962496","html_url":"https://github.com/tbabej/testmerge2/issues/54#issuecomment-362962496","issue_url":"https://api.github.com/repos/tbabej/testmerge2/issues/54","id":362962496,"user":{"login":"tbabej","id":2123868,"avatar_url":"https://avatars2.githubusercontent.com/u/2123868?v=4","gravatar_id":"","url":"https://api.github.com/users/tbabej","html_url":"https://github.com/tbabej","followers_url":"https://api.github.com/users/tbabej/followers","following_url":"https://api.github.com/users/tbabej/following{/other_user}","gists_url":"https://api.github.com/users/tbabej/gists{/gist_id}","starred_url":"https://api.github.com/users/tbabej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbabej/subscriptions","organizations_url":"https://api.github.com/users/tbabej/orgs","repos_url":"https://api.github.com/users/tbabej/repos","events_url":"https://api.github.com/users/tbabej/events{/privacy}","received_events_url":"https://api.github.com/users/tbabej/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T02:05:14Z","updated_at":"2018-02-05T02:05:14Z","author_association":"OWNER","body":"_Paul Beckingham says:_ \n\n Here is what I intend to implement:\n\n# If a UDA has allowable values, then the order in which they are defined is the sort order.  For example, for priorities:\n        `uda.priority.values=L,M,H`\n# The special value '-' indicates the blank value, so that it can be included in the sort order, in this example either of these might make sense:\n        `uda.priority.values=-,L,M,H`\n        `uda.priority.values=L,-,M,H`\n# If you want collating sequence, define them in collating sequence.  This is also what you get if the UDA does not specify allowable values."}}
{"actor":{"display_login":"tbabej"}}