Index: Radio.cs =================================================================== --- Radio.cs (revision 27845) +++ Radio.cs (working copy) @@ -692,15 +692,28 @@ case SortMethod.Number: if (channel1 != null && channel2 != null) { + int channel1GroupSort = 0; + int channel2GroupSort = 0; + foreach (RadioGroupMap gm in selectedGroup.ReferringRadioGroupMap()) + { + if (gm.ReferencedChannel().IdChannel == channel1.IdChannel) + { + channel1GroupSort = gm.SortOrder; + } + if (gm.ReferencedChannel().IdChannel == channel2.IdChannel) + { + channel2GroupSort = gm.SortOrder; + } + } if (bAscending) { - if (channel1.SortOrder > channel2.SortOrder) + if (channel1GroupSort > channel2GroupSort) { return 1; } return -1; } - if (channel2.SortOrder > channel1.SortOrder) + if (channel2GroupSort > channel1GroupSort) { return 1; }