I've got a bunch of tickets with the following summaries
- key, summary
- JIRA-122, 1.1 - Do bar
- JIRA-1, 1.3 - Do bedobedo
- JIRA-5, 1.2 - Do bby is a free elf
- JIRA-123, 1.1 - Do foo
I'd like to be able to do something like this: `ORDER BY substring(summary, 1,3), key` so I get an ordered list like this
- JIRA-122, 1.1 - Do bar
- JIRA-123, 1.1 - Do foo
- JIRA-5, 1.2 - Do bby is a free elf
- JIRA-1, 1.3 - Do bedobedo
Never mind the naive substring selection (I know it'll break if those numbers go into double digits), but can I do an ORDER BY like this?
I've got a horrible feeling (since I've not been able to find any examples), I'll need to create a custom field and store the rank there and sort that.