Implementing Searchfunction with sort-compatibility without Ajax