The object whose properties you want to sort
The value to compare to each data object keys, the ones matching it is sorted first, the rest are sorted by localeCompare on keys
data
localeCompare
a new object
The object whose properties you want to sort