Fix sort ordering

Signed-off-by: Alan Gardner <alan@armoin.com>