Merge pull request #83 from didrocks/fix-location-order
Order locations in ascii order
This commit is contained in:
commit
d32dc82045
1 changed files with 3 additions and 1 deletions
|
@ -29,7 +29,9 @@ func (t *Translation) AddLocations(locations []string) {
|
|||
func (t *Translation) Dump() string {
|
||||
data := make([]string, 0, len(t.SourceLocations)+5)
|
||||
|
||||
for _, location := range t.SourceLocations {
|
||||
locations := t.SourceLocations
|
||||
sort.Strings(locations)
|
||||
for _, location := range locations {
|
||||
data = append(data, "#: "+location)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue