added sorted vector utility

removed this functionality from input component