# Sorting big int with v"0.6"

**URL:** <https://discourse.julialang.org/t/sorting-big-int-with-v-0-6/1241>\
**Category:** General Usage\
**Tags:** question\
**Created:** [January 2, 2017, 2:09am UTC](https://discourse.julialang.org/t/sorting-big-int-with-v-0-6/1241 "2017-01-02T02:09:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![j\_verzani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j_verzani/32/8551_2.png) [@j\_verzani](https://discourse.julialang.org/u/j_verzani)\
**Post date:** [January 2, 2017, 2:09am UTC](https://discourse.julialang.org/t/sorting-big-int-with-v-0-6/1241/1 "2017-01-02T02:09:08Z")

</div>

Is this by design:

```julia
 | | |_| | | | (_| | | Version 0.6.0-dev.1746 (2016-12-29 05:44 UTC)
 _/ |\ __'_|_|_|\__'_| | Commit 07b7a7f (3 days old master)
|__/ | x86_64-apple-darwin13.4.0

julia> sort([big(3), big(2)])
ERROR: MethodError: no method matching sub_with_overflow(::BigInt, ::BigInt)
 in #sort!#7(::Base.Sort.QuickSortAlg, ::Function, ::Function, ::Bool, ::Base.Order.ForwardOrdering, ::Function, ::Array{BigInt,1}) at ./sort.jl:445
 in #sort#8(::Array{Any,1}, ::Function, ::Array{BigInt,1}) at ./sort.jl:483
 in sort(::Array{BigInt,1}) at ./sort.jl:483

```

Sorting BigFloat works, and both work with earlier versions of Julia.

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [January 2, 2017, 9:52am UTC](https://discourse.julialang.org/t/sorting-big-int-with-v-0-6/1241/2 "2017-01-02T09:52:47Z")

</div>

Seems like a bug to me, thanks for pointing it out. Would have to bisect to be sure, but my guess is this may have been introduced by [https://github.com/JuliaLang/julia/pull/17152](https://github.com/JuliaLang/julia/pull/17152) ?
