fixed a bug (sort order)