Replaced md-sort dependency with a function

Finally removed that heavy dependency (for such a sole simple task
too!). Replaced with a basic quicksort function.

Thanks to bogdyutzu over on SA:MP forums for writing the initial code
thus reminding me to do this!