The medal count is sorted by Gold by default. Click on the down arrow to change the sorting display order.