Fix sorting issue

TNL-952
is this ordered by value?

Also look at the style guide again, still not correct