JQuery Autocomplete — how to make drop down list, the first was the line that begins with the entered sequence?

JQuery Autocomplete - how to make drop down list, the first was the line that begins with the entered sequence?

For example, if you go to their website:
https://jqueryui.com/autocomplete/
and enter in the field "Tags" the letter j.
The winning list:
Clojure
Java
Javascript

But I entered j. Why the first falls Clojure? How to make Java? She's on J starts.
June 10th 19 at 16:11
1 answer
June 10th 19 at 16:13
Add sorting of results.

Demo without sorting: jsfiddle.net/handtrix/32Bck
Sorting: jsfiddle.net/32Bck/1726

Find more questions by tags jQuery