1

Sorting on Multiple Columns in Model

Hello Community,

I have a use case where I need to sort a data set first on column A and then, retaining this order, on column B. From what I gathered, the Sort node allows only one column at a time. Are there any methods?

4 replies

null
    • Lead Consultant Advanced Analytics
    • Michael_Daun
    • 10 days ago
    • Reported - view

    Interesting question, Dmitri!
    I sort - sorry: thought! 馃槈 - that I had understood the Sort Wizard and that you should add a second sorting instruction (i.e. Sort 1 and Sort 2) but this didn't do the trick for me. And I am quite sure that I tested all the possible combinations...

    So, I join you in this: Are there any methods?

    • Senior Director of Product
    • Ian_Macdonald
    • 10 days ago
    • Reported - view

    Hi  , ,

    Unfortunately the sorting dialogue currently only supports one level of sort.

    Multilevel sort (sort by, and then by) is in development and will be delivered in a forthcoming release.

    Hope that helps,

    Ian

    • Senior Director of Product
    • Ian_Macdonald
    • 10 days ago
    • Reported - view

    Hi 

    I think both myself and  thought you were talking about Discovery. My answer above holds true for Discover, but not for Model.

    For Model, as a workaround, concatenate the columns for the first and second sort, then sort on that concatenated column, then drop it.

    Hope that helps.

    Ian

    • Dmitri_Kanounnikov
    • 8 days ago
    • Reported - view

    I am sorry, I was talking about the Model :). Good to know that Discovery is in the works on this point!   , thanks for the tip! The workaround makes sense. However, for better usability it should be taken care of in the Sort Node. Similar to what some data integration tools allow:

Content aside

  • Status Answered
  • 1 Likes
  • 8 days agoLast active
  • 4Replies
  • 34Views
  • 3 Following