Carey Brown wrote:For a given sort group (regex-group(3)) will the following hold true:
* The first and second regex-groups will be identical.
Carey Brown wrote:1-A-ABC-100.55.24.A
Carey Brown wrote:My understanding is that within groups sorting will take place, other than that, the groups themselves must remain in the order encountered.
Carey Brown wrote:(0) (A-ABC-100.55) (23.67)
(0) (A-ABC-100.55) (23.22)
(0) (A-ABC-100.55) (22.D)
(1) (A-ABC-100.55) (23.21)
(1) (A-ABC-100.55) (23.20)
I'm not clear on this. It looks like all these entries are a part of one group (true?). Yet some get sorted ascending and some descending. I'm not clear how this is supposed to be sorted by both ascending and descending. Please clarify.
Joseph Bran wrote:100.55 comes first since this group comes first. Whichever group comes first it takes the priority...Then whichever group comes next...In the above example 100.55 comes first, so 101.55 is the second first group..then the next group is 100.200 comes first
if the input is as follows
the group sequence would be in result as
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton