Re: Sort list of number to create hierarchy in gallery.
I re-read the question and believe I understand what you are asking better this is an example of what I would do to accommodate up to 4 "." e.g. 1.2.3.4.5
for my example i will call my datasource 'ABC' and my decimal number column 'numb'
So i go to my gallery and add in this
SortByColumns(
AddColumns(
ABC,
"BefD",
Value(
First(
Split(
ThisRecord.numb & ".0.0.0.0.0",
"."
)
).Result
),
"Aft1D",
Value(
Last(
FirstN(
Split(
ThisRecord.numb & ".0.0.0.0.0",
"."
),
2
)
).Result
),
"Aft2D",
Value(
Last(
FirstN(
Split(
ThisRecord.numb & ".0.0.0.0.0",
"."
),
3
)
).Result
),
"Aft3D",
Value(
Last(
FirstN(
Split(
ThisRecord.numb & ".0.0.0.0.0",
"."
),
4
)
).Result
),
"Aft4D",
Value(
Last(
FirstN(
Split(
ThisRecord.numb & ".0.0.0.0.0",
"."
),
4
)
).Result
)
),
"BefD",
Ascending,
"Aft1D",
Ascending,
"Aft2D",
Ascending,
"Aft3D",
Ascending,
"Aft4D",
Ascending
)
You will need to change ABC to the name of your datasource. You will need to change anywhere you see numb to your decimal column.
i have tested it out in an app i built for this see the below picture of what your gallery should sort like:
