Sorting Folders by number in sharepoint

Cameron Francis 1 Reputation point
2022-07-25T02:32:04.347+00:00

I want to sort my folder numerically by the name.

right now they are labelled like
224212-image.png

I would like to have them show in order, right now the sort is putting "incident 9" after "incident 89"

I realize that's because the fields are text.

What would I need to do to sort the files numerically.

Any assistance would be greatly appreciated.

Microsoft 365 and Office SharePoint For business Windows
{count} votes

4 answers

Sort by: Most helpful
  1. Xuyan Ding - MSFT 7,601 Reputation points
    2022-07-26T02:23:14.283+00:00

    Hi @Cameron Francis ,

    There is such a paragraph in the article mentioned by esjimenezp, which mentioned that the reason for the confusion in the sorting of this case, as you said, is because the Name column is a text field column.
    224722-image.png

    At the moment I can only offer you a workaround:
    Create a Number column showing the same numbers as in the folder, sort this column and hide it.
    224695-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  2. Maryam 5 Reputation points
    2023-03-29T11:04:24.46+00:00

    The easiest workaround I could find was using a 01-99 format or 001-999 format for numbers, depending on how many values you will have.

    The numbers column type didn't work for me, as I couldn't find how to actually populate the column unfortunately.

    1 person found this answer helpful.

  3. Eduardo Jiménez Padilla 26 Reputation points
    2022-07-25T16:28:42.38+00:00
    0 comments No comments

  4. Robert R 0 Reputation points
    2024-03-06T14:54:27.56+00:00

    I know this thread is over a year old but this is possible - the number column can be added. The trick is to edit in grid view - put in numbers in 01-10 or 001-100 format in the number column then sort appropriately + hide if you need to - I just keep it to the far right and its generally not visible unless I scroll over to see it

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.