Take the 2-minute tour ×  Is there any library function
available in C standard library to do sort?  share|improve this
question @Alexandru, the whole point of SO is to be a place for
all programming-related question, of any skill level. Where do
you think Google should direct people to when they use that
query of yours? The powers that be want it to come here - when
SO is the top Google link for that query, our job is done. – 
paxdiablo Nov 25 '09 at 0:04 My original code was lazy and
probably alot different then what you would have found with a
Google search. However after all of the community input you have
an example of a good implementation of how to use qsort. – 
rerun Nov 25 '09 at 1:59 @paxdiablo: if that's the case, they
might as well simply host the standard lib documentation - I
doubt this question will add anything above that canonical
reference, here. For some complex cases, perhaps - but just to
find a basic function? –  Eamon Nerbonne Nov 25 '09 at 8:56 Even
questions like this contribute to th