Need to sort array values, not keys, to find latest bucket