Fixing warnings in list_nsort when sorting by multiple fields.