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

Notifications

Announcements

No record found.

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)
  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at
    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.)
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    So how about using contains while doing the sorting instead of begins?
  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at
    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.
  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    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.
  • Verified answer
    Haig Liu Profile Picture
    Microsoft Employee on at
    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:

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 74

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans