From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7545 invoked by alias); 2 Jul 2016 17:18:28 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21722 Received: (qmail 6355 invoked from network); 2 Jul 2016 17:18:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=gTPrqitdqncpFxF2sSCTFtvxAINr1mJcQjdg7Bv8PZ4=; b=q6xwPypU8ECPft2IDL1Vi7HUlQ2HRI7fW/eaf5Ql/GApR4l3mzvGepvDS3adb9LND3 zF1dqN2UW79OhNeO1pvvGIUmt7BQBGwjFXnTY4Sbg1HxslWLrGA+Rxphy56zwj1NbKBp m8BJoeAFPMYwcOT8vubJopVm/a/bEXmiWcmT9yuKKwbBb3b+96s3oJ2zNnUD+uIxEdf7 wu4Ikhewic4yxo6YYO+5tn70MraInL3XCX5NqG7I9b208HX3Y9Aj5sWRBdyZs4NvxZuB 3j9Y57z9l3BdKjPqWtl5v+wYMfyUN59fR+qFrYIEhFnR/uvjLIuEZdGDH/D+k/Jxhtuj nqVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=gTPrqitdqncpFxF2sSCTFtvxAINr1mJcQjdg7Bv8PZ4=; b=f/ZNSFv7rZzXQwRcM3Q1Kjbdt763CnLtDrj7tFVWTivo8FtjpH1aeuTcp2oB8epfbs aX9nwEB9ej0ZTttliIc9ovTVFWz8yDHyO0eC2k13yGj6wX0pMO00BKON3JxRZfbgoevL 5xfHBzrOm1sghLKXZVm0l+750GoD57FPhdVbuyHH0jr+u3xZrggknD7aSx+xwJWRWVtI aJdo7KjzGXpdY1otm9RKpN0EySEtCAbqoxqJKbVkNJSgf9ELvZQ6BpNBIf1rzEhWniHO uDxWqKUV7DU+LpnOFJ7H5xHQFneL1pC5LLW/yLgz2+BrVPlPy6n4H6wOwnfY+cfnOGmk SEyA== X-Gm-Message-State: ALyK8tIKca8y8zGjYBqGxn8h7JaMOEZjpxAR1j2pj4dhJ+1w4oVA2DTqFBlM0WyQsz2MDg== X-Received: by 10.98.10.25 with SMTP id s25mr7591638pfi.44.1467479904898; Sat, 02 Jul 2016 10:18:24 -0700 (PDT) From: Bart Schaefer Message-Id: <160702101826.ZM12978@torch.brasslantern.com> Date: Sat, 2 Jul 2016 10:18:26 -0700 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: Feature request: two level sorting" (Jul 2, 6:09am) References: <160615101239.ZM21280@torch.brasslantern.com> <160615153817.ZM22021@torch.brasslantern.com> <160701094349.ZM9175@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: Feature request: two level sorting MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 2, 6:09am, Sebastian Gniazdowski wrote: } } Good that I can get away with the problem by using capital letters, } which aren't originally used in the data. If you can find a character not in your data that collates after 'z', you can do something like this: setopt extendedglob LC_COLLATE=C c='~' a=( "aaa" "aeg" "aa1" "ae2" ) x=( ${a//<->(#m)/$c$MATCH} ) print ${${(o)$x}//$c}