Which transformer could be used to sort features in ascending alphabetical order by the last_name attribute?

Prepare for the FME Certified Professional Exam. Study with flashcards and multiple-choice questions; each question includes hints and explanations. Ensure your success!

Multiple Choice

Which transformer could be used to sort features in ascending alphabetical order by the last_name attribute?

Explanation:
Sorting the feature stream by a chosen attribute is done with the Sorter transformer. It reorders incoming features based on the value of a specified sort attribute, here last_name, and you set the direction to ascending so the results run from A to Z. Since last_name is a text field, the Sorter compares string values and outputs features in alphabetical order accordingly. The other transformers operate on different data structures (for example, ListSorter sorts items inside a feature, PointCloudSorter handles point clouds) and aren’t used to reorder a stream of features by a field. So the Sorter is the right tool to achieve ascending alphabetical sorting by last_name.

Sorting the feature stream by a chosen attribute is done with the Sorter transformer. It reorders incoming features based on the value of a specified sort attribute, here last_name, and you set the direction to ascending so the results run from A to Z. Since last_name is a text field, the Sorter compares string values and outputs features in alphabetical order accordingly. The other transformers operate on different data structures (for example, ListSorter sorts items inside a feature, PointCloudSorter handles point clouds) and aren’t used to reorder a stream of features by a field. So the Sorter is the right tool to achieve ascending alphabetical sorting by last_name.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy