~ fix sorting

Signed-off-by: Vladimir Bulyga <xx@ccxx.cc>