Merge pull request #17 from wjkohnen/issue16

Sort values of BitSet.
This commit is contained in:
Peter Boyer 2016-05-31 17:13:32 -04:00
commit a0fd4a7675
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"hash/fnv"
"sort"
"strings"
// "regexp"
// "bytes"
@ -221,6 +222,7 @@ func (b *BitSet) values() []int {
ks[i] = k
i++
}
sort.Ints(ks)
return ks
}