scope to sort correctly