Fix slot sorting