[FEAT] Fix sorting function to correctly sort Ints

[FIX] Remove console logs