Changed manifest sorting methods

Dropped separate file.
Sorting for ranked types in assertions