Re #7820. Fixing bug in sorting columns.
Merge branch 'bugfix/7820_peaks_columns_sorting' into develop