javascript sort distances with different units
===

How can you sort an array of distances when the units are being returned in both miles and feet?

For example, I'll get 327 feet, 1.5 miles. 20 miles. etc. The problem is that when trying to sort by distance, feet will often be last because its numerical value is higher. Is it possible to always calculate something with feet first in an array?

here's the code: 

    _locationset.sort(function (a, b) {
           return ((a.Distance < b.Distance) ? -1 : ((a.Distance >b.Distance) ? 1 : 0));
    });

Thank you for any help.