Fix area sorting