Sort values of BitSet.

* Fixes pboyer/antlr4#16
This commit is contained in:
Wolfgang Johannes Kohnen 2016-05-31 17:13:01 +02:00
parent 6abe69f6e2
commit 950acca7c0
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
}