Chunked out sorting-hat into its own partial. Created a json object for the data.