added array sort

Added sort_by to Generic Helper Function. This gives us the ability to
sort array, how we want them.

Example: cats.items.sort(sort_by('Name', true, function(a){return
a.toUpperCase()}));
Source: http://stackoverflow.com/a/979325