Fix modules sorting.