fixed mfqs and added sorting. still needs tiebreakers
merged changes