Core functionality added for class sorting. All templates added. Some additional cleanup is required on the front end, but it is fully functioning