js/model.js, tests: Main clone of cluster may not be the first
It is the first when clones are ordered by size. It may happen that this is not the case. However the index of the cluster gives the cloneID that is the main clone of the cluster. Added a test for that case. See #2837.
Showing with 35 additions and 2 deletions