Added sortArray function and JSON Data.