I have now succeeded in displaying all the necessary options in html on the page, all I need to do now is finishing the sorting side of things and I will be done.