I have tried many solutions, LENGTH, CAST, etc. I can't seem to come up with a workable solution to order alphabetically, then naturally (1, 2 .... 10, 11). Any help would be greatly appreciated! Not every result has a number, some only have 1 digit, some have 2 digits. I can get them sorted Alphabetically, I can get them sorted naturally 1-10, I can't seem to get them to do both.
name |
---|
Fish 1 |
Fish 2 |
Cats |
Cats 11 |
Cats 4 |
Dogs 2 |
Dogs 10 |
Dogs 11 |
I would like it alphabetically first, then naturally (for the numbers) second.
The above table should output:
Cats
Cats 4
Cats 11
Dogs 2
Dogs 10
Dogs 11
Fish 1
Fish 2