fix candidate selection
fix candidate selection

previous ascendingSort() wasn’t doing much, since not returning -1 when
resolution ‘a’ was smaller than that of ‘b’. I fixed this ( - instead
of >) but also resorted to ascending sorting.

The logic now goes that we start with the highest resolution available,
then go down gradually until we find the last one that is above the
Dpr. This solves the situation where all available images are below Dpr
(previously the lowest candidate would have been served, now the
highest is being served)

purposeindustries/picturefill,yufi113/picturefill,chrismcandrew/picturefill,yubin-huang/picturefill,footiealf/picturefill,purposeindustries/picturefill,yufi113/picturefill,samiadelgado/picturefill,ddeveloperr/picturefill,yubin-huang/picturefill,iancrowther/picturefill,nucliweb/picturefill,scottjehl/picturefill,guardian/picturefill,demateu/picturefill,patrickkettner/picturefill,chrismcandrew/picturefill,scottjehl/picturefill,ddeveloperr/picturefill,samiadelgado/picturefill,demateu/picturefill,iancrowther/picturefill,rockmandew/picturefill,patrickkettner/picturefill,albell/picturefill,mcanthony/picturefill,footiealf/picturefill,albell/picturefill,mcanthony/picturefill,guardian/picturefill,rockmandew/picturefill