Modifies array.sort to compare strings when no sort function is provided and returns true or false values to lua sort