Forum Discussion
Sort by column name
- Anonymous9 years ago
When you sort by ascending on a text column it shows numbers first. And it only sorts by the first element of some text.
An example:
data = beer, 3, 10, 2, axe, cloth.
Sort data by ascending: 10, 2, 3, axe, beer, cloth
Sort data by descening: cloth, beer, axe, 3, 2, 1
These are the possibilities you have when sorting text. but there is a work around for this.
You can make a new column next to your categories, which can be called SortOrder and simply assign 1, 2, 3, 4, 5 and so on, and then sort by the column, either ascending or descending according to your need.
Let me know if this will solve your challenge. I'll gladly elaborate.
Best
Martin
- Anonymous9 years ago
barabuli Could I ask you to accept a solution for this so other can benefit from it as well?
Hi barabuli
I think it's because your horizontal axis is text and is sorted by ascending. That would certainly explain why you get the order, which you get. Let me know if this clarifies anything. I can also elaborate.
Best
Martin
Thanks Martin,
but see, you cant choose it is by acsending or what? It just says "sort by "Column name"".
Agree that I have tex column, but in this case it should sort by alphabet.
I also tried to put numbers in front of every range, so it should by like:
1) less then 30 days
2) from 30 to 60 days
3) . . . .
but anyways it didn't sort by acsending numbers ((\
I understand that it is not number format, but text, but anyways there should be some logic either alphabet, or number acsending. I cant get any of them :(
- Anonymous9 years agoNot applicable
When you sort by ascending on a text column it shows numbers first. And it only sorts by the first element of some text.
An example:
data = beer, 3, 10, 2, axe, cloth.
Sort data by ascending: 10, 2, 3, axe, beer, cloth
Sort data by descening: cloth, beer, axe, 3, 2, 1
These are the possibilities you have when sorting text. but there is a work around for this.
You can make a new column next to your categories, which can be called SortOrder and simply assign 1, 2, 3, 4, 5 and so on, and then sort by the column, either ascending or descending according to your need.
Let me know if this will solve your challenge. I'll gladly elaborate.
Best
Martin