Create array_sort

Misc example from the Professional JavaScript for Web Developers book.