web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Does anyone know a way to sort a string column alphanumerically

(0) ShareShare
ReportReport
Posted on by 2
Hi,
 
I was wondering if there was a way to sort columns in an alphanumerical fashion. The column I am working on is a string type that contains both number and letter entries, but when I use the normal A-Z it will sort wrong due to the numbers actually being strings, so things will be sorted in this fashion:
 
10
110
12
dab
 
rather than:
 
10
12
110
dab.
 
I have been looking into it myself, but I have not found any way to do so and I am wondering if anyone here has a method to do so?
I have the same question (0)
  • Verified answer
    Haig Liu Profile Picture
    Microsoft Employee on at
    Does anyone know a way to sort a string column alphanumerically
    Hi Partner,
    Dynamic 365 views do not support multiple filter criteria on the same column, you can only create fields of the suitable data type to suit different filtering needs.
    However, we can customize the sorting of the report after exporting the data:
  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Does anyone know a way to sort a string column alphanumerically
    Hi Martin,
     
    Sorry I understood the question in a different way like to check some small value in a larger value of type string. Yes, what exactly you said is right. Thank you for the correction.
  • Martin Dráb Profile Picture
    236,160 Most Valuable Professional on at
    Does anyone know a way to sort a string column alphanumerically
    Bhanari, can you explain that, please? Your suggestion doesn't make sense to me, but maybe I missed something.
    "Contains" is useful when you want to know whether a string is contained in another string, but not for sorting. It also doesn't tell you at which position the string is and what characters are before it, which is crucial for sorting.
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Does anyone know a way to sort a string column alphanumerically
    So how about using contains while doing the sorting instead of begins?
  • Martin Dráb Profile Picture
    236,160 Most Valuable Professional on at
    Does anyone know a way to sort a string column alphanumerically
    What you see is the correct sorting of strings.
    A possible solution may be, for example, using a computed column or an extra fields with values prefixed with space (e.g. '   10' instead of '10'.
    Which Dynamics product is your question about? (It would be better to ask in a specific forum instead of this general one.)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 394

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 123

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 122 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans