diff options
Diffstat (limited to 'factor_info.go')
| -rw-r--r-- | factor_info.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/factor_info.go b/factor_info.go index a6710e7..f3193b5 100644 --- a/factor_info.go +++ b/factor_info.go @@ -5,7 +5,7 @@ import ( "fmt" "io" "math" - "slices" + "sort" ) // FactorInfo contains all of the information this program @@ -64,7 +64,9 @@ func getFactorInfo(a args) *factorInfo { radix := a.Radix r_factors := factors.Factors(radix) - slices.Sort(r_factors) + sort.Slice(r_factors, func(i, j int) bool { + return r_factors[i] < r_factors[j] + }) var totativeDigits []uint32 = nil if a.TotativeDigits && radix < maxExtended { |
