From mboxrd@z Thu Jan 1 00:00:00 1970 From: sgoldman@tower-research.com (Steve Goldman) Date: Mon, 10 Nov 2008 09:55:18 -0500 Subject: [sup-talk] [PATCH] show matching aliases before email addresses in auto complete In-Reply-To: <1226294055-sup-4217@entry> References: <1226091602-sup-7664@sgoldmanlinux.tower-research.com> <1226293522-sup-862@entry> <1226294055-sup-4217@entry> Message-ID: <1226328785-sup-310@sgoldmanlinux.tower-research.com> Excerpts from William Morgan's message of Mon Nov 10 00:14:48 -0500 2008: > Reformatted excerpts from William Morgan's message of 2008-11-09: > > sort_by { |c| [ContactManager.contact_for(c) ? 1 : 0, c] } > > Oh, 0 : 1, maybe. Ah, much cleaner. Thanks for the ruby lesson. And, yeah, the correct order is 0 : 1. Thanks. -- Steve Goldman sgoldman at tower-research.com T: 212.219.6014 F: 212.219.6007 Tower Research Capital, LLC 377 Broadway, 11th Fl. New York, NY 10013