sort cards after search