Skip to main content
Solved

Case Insensitive Sort

  • August 25, 2017
  • 9 replies
  • 30 views

The Sorter does not appear to have an option for case-insensitive sort. Is it possible?

I am using FME Desktop 2016.1.3.1

Best answer by howard_l

Make a COPY of your original field (eg using AttributeManager).

Change case of data in new field to UpperCase.

Sort on this new UpperCase field.

................

Hope this helps

Howard L'

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.

9 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • August 25, 2017

Hi @jimo you can use BulkAttributeRenamer and choose lower or upper case.

Thanks


takashi
Celebrity
  • 7843 replies
  • August 26, 2017

Hi @jimo, there is no option to perform case-insensitive sorting. As a workaround, consider uniforming all attribute values to one of UPPER CASE or lower case, with the StringCaseChanger, @UpperCase function or @LowerCase function.


  • 0 replies
  • August 26, 2017

Hi @jimo you can use BulkAttributeRenamer and choose lower or upper case.

Thanks

I know that you can use other transformers to make everything upper case or lower case and sort that way, but the problem is, this attribute represents a list of FMW scripts that will appear in a select box, and it is really important that the case of the FMW scripts remains true.

 

 

Is there a way to make the sort and keep the case of the values in the attribute?

 

 


Forum|alt.badge.img+1
  • 44 replies
  • Best Answer
  • August 26, 2017

Make a COPY of your original field (eg using AttributeManager).

Change case of data in new field to UpperCase.

Sort on this new UpperCase field.

................

Hope this helps

Howard L'


stalknecht
Contributor
Forum|alt.badge.img+21
  • Contributor
  • 305 replies
  • August 26, 2017

I think the NaturalSorter will give you the desired result.


takashi
Celebrity
  • 7843 replies
  • August 26, 2017

Hi @jimo, there is no option to perform case-insensitive sorting. As a workaround, consider uniforming all attribute values to one of UPPER CASE or lower case, with the StringCaseChanger, @UpperCase function or @LowerCase function.

Alternatively, the InilineQuerier with this SQL statement could also be used to sort the features in case-insensitive.

 

select * from my_table order by upper(key_attribute)

 


  • 0 replies
  • August 26, 2017

Make a COPY of your original field (eg using AttributeManager).

Change case of data in new field to UpperCase.

Sort on this new UpperCase field.

................

Hope this helps

Howard L'

I think this answer makes the most sense. Just another field, change the case in that field, then sort by that field.

 

Thanks

 

 


  • 0 replies
  • August 26, 2017

Hi @jimo, there is no option to perform case-insensitive sorting. As a workaround, consider uniforming all attribute values to one of UPPER CASE or lower case, with the StringCaseChanger, @UpperCase function or @LowerCase function.

This attribute is coming from a csv file, though, not from a database.

 

 


takashi
Celebrity
  • 7843 replies
  • August 26, 2017

Hi @jimo, there is no option to perform case-insensitive sorting. As a workaround, consider uniforming all attribute values to one of UPPER CASE or lower case, with the StringCaseChanger, @UpperCase function or @LowerCase function.

No problem. The InlineQuerier works regardless of what the source format is. See the Help to learn more.