ResourcesProxyModel: Merge the two ordering methods into one
This clarifies the logic behind the algorithm, making it more transparent and comprehensible. Also hopefully fixes subtle bugs because previous two functions were both accounting for flipped sort order slightly differently.