When use fairsheduler as RM scheduler, before assign container we will sort all queues or applications.
We will use FairSharePolicy#compare as the comparator， but the comparator is not so perfect.
It have a problem as blow:
1. when a queue use resource over minShare(minResources), it will put behind the queue whose demand is zeor.
so it will greater opportunity to get the resource although it do not want. It will waste schedule time when assign container
to queue or application.
I have fix it, and I will upload the patch to the jira.