mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 12:49:54 +05:00
better rateinterval sorting
This commit is contained in:
@@ -376,7 +376,8 @@ func (il RateIntervalList) Swap(i, j int) {
|
||||
|
||||
// we need higher weights earlyer in the list
|
||||
func (il RateIntervalList) Less(j, i int) bool {
|
||||
return il[i].Weight < il[j].Weight
|
||||
return il[i].Weight < il[j].Weight ||
|
||||
il[i].Timing.StartTime > il[j].Timing.StartTime
|
||||
}
|
||||
|
||||
func (il RateIntervalList) Sort() {
|
||||
|
||||
Reference in New Issue
Block a user