OT: Sort / sub sort algorithm

Rick Quatro rick at rickquatro.com
Tue Jul 2 06:15:09 PDT 2013


Hello Framers,

I have a series of nested lists and am looking to sub sort each level in
reverse order. Below is how the lists "look"; I have included a flat version
and an indented version. Any advice on sorting algorithms would be
appreciated.

Rick Quatro

Before
1
2
3
3.1
3.2
3.3
3.3.1
3.3.2
3.3.3
3.3.3.1
3.3.3.2
3.3.3.3
3.3.3.3.1
3.3.3.3.2
4
4.1
4.2
5

After
5
4
4.2
4.1
3
3.3
3.3.3
3.3.3.3
3.3.3.3.2
3.3.3.3.1
3.3.3.2
3.3.3.1
3.3.2
3.3.1
3.2
3.1
2
1

Before
1
2
3
  3.1
  3.2
  3.3
    3.3.1
    3.3.2
    3.3.3
      3.3.3.1
      3.3.3.2
      3.3.3.3
        3.3.3.3.1
        3.3.3.3.2
4
  4.1
  4.2
5

After
5
4
  4.2
  4.1
3
  3.3
    3.3.3
      3.3.3.3
        3.3.3.3.2
        3.3.3.3.1
      3.3.3.2
      3.3.3.1
    3.3.2
    3.3.1
  3.2
  3.1
2
1





More information about the framers mailing list