Hi,
I've recently found something curious in JMP Pro 14.2 : The default value of the value ordering property of a character column is not necessarily consistent with the sort order of the same column. An example : The French chart of accounts uses an articulated code as the ID of defined accounts. In such a system, 101 is a subdivision of 10, and so on. Thus, the ID must be stored as a character column, in order to have a sort order like 10, 101, 102, 11, 111, 12... Then all sorting operations or Col rank functions work fine but: the default value ordering in several plot is incorrect. Even when adding a Value Ordering property on the column, the defaut order defined by JMP is 10, 11, 12, 101... As an ordinary chart of accounts might have several hundred IDs, manual reordering is not an option.
I have found in another discussion (Value-Ordering-in-JMP-Script-by-a-Variable) a script that I was able to adapt, like:
- comptes = Column("Compte") << Get as Matrix;
- rangs = ranking(comptes);
- Column("Compte") << Set Property("Value Ordering", Eval(comptes[Rank Index(rangs)]));
But writing a script for something that should be automatic is rather unpleasant. Did I miss something and is there another solution ?
Thanks in advance
Yves Roy, Université de Poitiers