Update 'Track order' div before sorting
Sort missing tracks too while sorting from config

There is a possibility that there are tracks in 'Track order' section in config panel that are not actually drawn by the drawing code on the image (for the selected region). Those missing tracks also need to be considered when sorting.