Skip to main content
Solved

How to Sort Two Related Columns in FME Using Custom Classification Without Breaking Row Integrity

  • June 15, 2025
  • 1 reply
  • 27 views

mohamedalsobh
Contributor
Forum|alt.badge.img+6

Colleagues, I'm looking for a way to sort two text columns in Excel based on a custom classification. I have a dataset with several columns, including X, Y, ID Link, GIS Portal Link, Major Company, and Sub Company. My goal is to sort the "Major Company" and "Sub Company" columns according to my own predefined order.

Here's what I attempted:
I used the AttributeMapper transformer to assign classification values, followed by a Sorter to sort both columns. However, it seems that FME ignored the initial sorting by "Major Company" and only applied the sort to the "Sub Company" column.

What I want is:

  1. To first sort the "Major Company" column based on my custom classification.

  2. Then, within each "Major Company" group, sort the "Sub Company" column based on another classification.

  3. It’s important that the row structure remains intact—meaning if a "Sub Company" row is moved, all its related data (X, Y, ID Link, GIS Portal Link) must move with it.

  4. However, I worry that "freezing" or locking the "Major Company" column could corrupt the data by misaligning the coordinates or other fields that are specifically linked to the "Sub Company".

To clarify the structure:
The "Major Company" column is mostly repetitive. For example:

  • (Major Company: A, Sub Company: B)

  • (Major Company: A, Sub Company: C)

  • (Major Company: A, Sub Company: A)

The ID Link, X, Y, and GIS Portal Link are associated with the Sub Company, not the Major Company. Is there an FME transformer or method that allows me to classify and sort both columns hierarchically first by "Major Company" and then by "Sub Company" without corrupting the row integrity of the data?

 

Best answer by mohamedalsobh

I found that I can group them in the Sorter transformer it works

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

mohamedalsobh
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • Best Answer
  • June 15, 2025

I found that I can group them in the Sorter transformer it works