Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
If you allow me, I just want to point two things about your filter function.
Asserting on 'null' is misleading as your map will return or the index value or 'undefined'. Besides that you could refactor it like "function(i) { return i; }" as 'i' is going to be evaluated and its value will only be returned when it's not falsy (false, undefined or null);
Simple and direct! Just be careful while using double equals in JS -> http://www.impressivewebs.com/why-use-triple-equals-javascipt/
;)
Someone checked the performance of the proposed solution? According jsperf.com, flash sort is the faster algorithm for Javascript.