added sorting by maximum altitude