Nov-21-2018, 08:29 AM
Hi guys,
I'm a very new coder so your help means a lot.
I'm trying to sort a list which unsorted might look like this:
001 123
001 Beta 123
402 123
403 123
402 CxR 123
192 UqS 123
001 Alpha 123
309 223
001 038
007 Bond 123
I want to sort this list so that the first three characters are sorted by number, but after that letters are prioritized in sorting. Thus i want the code to return the list sorted like so:
001 Alpha 123
001 Beta 123
001 038
001 123
007 Bond 123
192 UqS 123
309 223
402 CxR 123
402 123
403 123
How do i sort a list like so?
Thanks, guys.
I'm a very new coder so your help means a lot.
I'm trying to sort a list which unsorted might look like this:
001 123
001 Beta 123
402 123
403 123
402 CxR 123
192 UqS 123
001 Alpha 123
309 223
001 038
007 Bond 123
I want to sort this list so that the first three characters are sorted by number, but after that letters are prioritized in sorting. Thus i want the code to return the list sorted like so:
001 Alpha 123
001 Beta 123
001 038
001 123
007 Bond 123
192 UqS 123
309 223
402 CxR 123
402 123
403 123
How do i sort a list like so?
Thanks, guys.