make sorting more consistent