Fixed sorting with different data-types