- FIX: sorting doesn't work regarding the last element