I am trying to find out how (using a quicksort algorithm) to sort an struct array by 2 criterias. For example say I had a struct of:
struct employee{ char
I think you should sort your array by gender first, one for male, one for female. Then use the quicksort function to sort within those two arrays.
You can use strcmp to sort the original array into two arrays: one for male, one for female.