func (s SortByCreatedTimeAndPriority) Sort(transactions []Transaction) {
	sorter := byCreatedTimeAndPriority(transactions)
	if s.HighPriorityFirst {
		sort.Sort(sorter)
	} else {
		sort.Sort(sort.Reverse(sorter))
	}
}
// Sort sorts transactions by creation time and priority
Sort sorts transactions by creation time and priority
// Sort sorts transactions by creation time and priority
func (s SortByCreatedTimeAndPriority) Sort(transactions []Transaction) {
	sorter := byCreatedTimeAndPriority(transactions)
	if s.HighPriorityFirst {
		sort.Sort(sorter)
	} else {
		sort.Sort(sort.Reverse(sorter))
	}
}
func ( s SortByCreatedTimeAndPriority ) Sort ( transactions [ ] Transaction ) { sorter := byCreatedTimeAndPriority ( transactions ) if s . HighPriorityFirst { sort . Sort ( sorter ) } else { sort . Sort ( sort . Reverse ( sorter ) ) } }
Sort sorts transactions by creation time and priority
Sort sorts transactions by creation time and priority