Opened 12 years ago
Closed 11 years ago
#2674 closed defect (fixed)
Sorting of Array-Variables in OMEdit
| Reported by: | Christian Schubert | Owned by: | Adeel Asghar |
|---|---|---|---|
| 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], ....
Note:
See TracTickets
for help on using tickets.

Fixed in r22879.