Opened 10 years ago
Closed 10 years ago
#2674 closed defect (fixed)
Sorting of Array-Variables in OMEdit
Reported by: | cschubert | Owned by: | adeas31 |
---|---|---|---|
Priority: | high | Milestone: | 1.9.1 |
Component: | OMEdit | Version: | trunk |
Keywords: | array sorting plot | Cc: |
Description
Consider the following simple model
model A constant Integer N=30; Real a[N]; equation for i in 1:N loop a[i] = i*time; end for; end A;
If you simulate that in OMEdit then the sorting in the variables browser is a little bit odd, because you get: a[10], a[11], ..., a[19], a[1], a[20], a[21], ..., a[29], a[2], a[30], a[3], ...
So it is probably a simple string sorting but it would be much better if we used a Natural Sorting, i.e. a[1], a[2], ..., a[9], a[10], a[11], ....
Change History (1)
comment:1 Changed 10 years ago by adeas31
- Resolution set to fixed
- Status changed from new to closed
Fixed in r22879.