sort prefixes on first load, for clearer autocompetions
refactored helper methods for autocompleting. this should make it easier to extend yasqe with new autocompetion functionalities