Sort switch buffer, but do not sort if no pattern has been typed