Sorts a simple array
Used to learn about the basics of Callbacks within JavaScript/jQuery
Works here, just not in SharePoint... Welcome to my world.
Learning about the switch parameter that's passed into this function.