Sorting SharePoint List Date column. Need null values to appear at the end of column when sorting by ascending view

Aaron Witherel 21 Reputation points
2021-10-21T14:59:58.243+00:00

I am building a SharePoint list to sort by date and I need the null values to appear at the bottom when sorting by ascending view. I would appreciate any help.

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

Accepted answer
  1. CaseyYang-MSFT 10,461 Reputation points
    2021-10-22T02:50:11.65+00:00

    Hi @Aaron Witherel ,

    Per my test, there is no available OOTB option to sort a column in ascending order with NULL values at the end. But you could add a custom column and create a flow then use list view sort as a workaround. Here is my test steps.

    1.Add a Single line of text column.

    2.Create Microsoft flow.
    Integrate > PowerAutomate > Create a folw > See your flows > New flow > Automate cloud flow > Select "When an item is created" > Create

    Flow details:

    142682-1.png

    3.Create list view.
    Settings > List settings > Create view > Standard View > check "Make this the default view(Applies to public views only)" > Sort > "First sort by the column:" Select the column you created in step1 > Show items in ascending order > "Then sort by the column: " Select the date column > Show items in ascending order

    142745-2.png

    4.If you don't want to show the column you created in step1, you could hide this column.
    Click "+Add column" > Show/hide columns

    My test result:

    142755-3.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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.