Table sorting on IntelliJ
Answered
Hi,
I am trying to edit some data as table and sort the columns.
I see that the column is detected as text, can I change this to number field
Currently the editor sorts as,
prefix_text1
prefix_text12
prefix_text13
prefix_text2
prefix_text21
Is there anyway I could have an intuitive sorting even if I have to configure something?
Please sign in to leave a comment.
Hello Jerry,
There is no separate setting to configure sorting behavior in data table, extracted from csv.
You may, however try to write your own custom data extractor, which would do the sorting you need.
There are pre-defined Groovy, JavaScript and Clojure extractors, which you can copy and modify. Use Go to Scripts Directory action to reveal them in Project:
`ROWS` data binding element will need to be sorted. Documentation for available API can be found in this thread.