Want to know more about us and our multimedia, animation & web design courses, feel free to Contact Us. We would love to hear from you.
Its syntax is as follows ?
array.sort( compareFunction );
compareFunction ? Specifies a function that defines the sort order. If omitted, the array is sorted lexicographically.
Returns a sorted array.
Try the following example.
|Monday To Friday||8:00 Am To 8:00Pm|
|Saturday & Sunday||8:00 Am To 5:00Pm|