Continuation of Question...
Basically, there is an array called Stock stocks[maxSize]; Each line of the array contains the trading symbol, company name, stock sector, number of shares, purchase price, and current price. I need a function that sorts the array of passed Stock objects according to increasing sector value.
The sectors, which are of enumerated data type, are:
enum Sector {TECHNOLOGY = 10, HEALTH = 20, FINANCIAL = 30, CONSUMER_GOODS = 40, UTILITIES = 50};