oetiker/SmokePing

Request: Ordering for alternate hierarchies

computercolin opened this issue · 2 comments

Would love to have alternate hierarchies ordered.
Currently, targets in hierarchies appear in a jumbled order (probably the hash of the target id or name).
I would prefer they appear in the order they appear in the Targets file (as happens with the Default Hierarchy). This would really help presentation value.

For example

++ ccc
menu = ccc
title = ccc
parents = h1:/

++ bbb
menu = bbb
title = bbb
parents = h1:/

++ aaa
menu = aaa
title = aaa
parents = h1:/

Becomes
example_reordered

I.E. reverse from how defined in the Targets file.

But it gets much worse. In a large install with hundreds of targets some hierarchy, menu appears in total random order. We see things like
actual_out_of_order

I should share more but don't want to leak names. It is not just a sorted/reverse-sorted issue. Or lower-vs-upper issue, targets get sorted seemingly at random (probably a hash function).
Stuff like (all upper)
B
D
H
A
S
A

This issue has become stale and will be closed automatically within 7 days. Comment on the issue to keep it alive.