Sorting strings
- To: mathgroup at smc.vnet.net
- Subject: [mg123101] Sorting strings
- From: Themis Matsoukas <tmatsoukas at me.com>
- Date: Wed, 23 Nov 2011 07:07:21 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
Sorting this list of strings {"a1", "a2", "a20", "a12"} // Sort I get {"a1", "a12", "a2", "a20"} but I would like the numerals to be sorted as numbers, i.e., as {"a1", "a2", "a12", "a20"} Is this possible or do I have to rename "a1" into "a01" etc? Thanks Themis
- Follow-Ups:
- Re: Sorting strings
- From: Leonid Shifrin <lshifr@gmail.com>
- Re: Sorting strings
- From: Ulrich Arndt <ulrich.arndt@data2knowledge.de>
- Re: Sorting strings
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: Sorting strings