Updated sorting mechanism for better performance
First item now selected on model side. Fixed first item selection in
ordered list.