small sorting fix