Fixed codelist sorting in publish wizard
Fixed repository sorting
Added unit test for OrderedLists