Others

How to Sort Times from Earliest to Latest Within Each Date in WPS Office Spreadsheets

Steven ParkerSteven Parker Nov 13, 2026 869 views

Question details

The user needs to sort multiple event times chronologically within each date when dates and times are stored in adjacent spreadsheet columns.

How to Sort Times from Earliest to Latest Within Each Date in WPS Office Spreadsheets
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
The user has a workbook with event dates in one column and event times in an adjacent column and wants to arrange each day's events from earliest to latest without mixing up the dates.
Observed behavior
The times within each date are not currently in chronological order, so the user needs a multi-level date-and-time sort.
Before you start

Make sure the dates and times are in separate adjacent columns and are stored as spreadsheet-recognized date/time values rather than text. Otherwise, sorting may not work correctly.

Solution 1Recommended

Sort by Date and Time with the Sort Command in WPS Office Spreadsheets

Use this method in WPS Office Spreadsheets or Excel when you need a one-time manual sort of dates and their adjacent times.

This method changes the row order in place. Select all the columns that must move together so the date and time values stay aligned.

1
Select the date and time columns

Select the entire data range including the date column, the time column, and any related event columns.

2
Open the Sort dialog

Go to the Data tab and click Sort > Custom Sort in WPS Office Spreadsheets.

3
Set the date level

In the Sort dialog, add the first level, choose the Date column, set Sort On to Values, and set Order to Oldest to Newest or Ascending.

4
Set the time level

Add a second level, choose the adjacent Time column, and set Order to Ascending or Smallest to Largest.

5
Apply the sort

Click OK. The rows are now sorted by date first and by time from earliest to latest within each date.

Sort by Date and Time with the Sort Command in WPS Office Spreadsheets
Sorting completed: All events remain on their original date, and times appear in chronological order within each date.
WPS Office how-to

Sort Event Times Chronologically by Date in WPS Office Spreadsheets

WPS Office Spreadsheets includes a multi-level Sort command, so you can set the date column as the first sort level and the time column as the second level to arrange times from earliest to latest within each date.

  1. 1. Download and install WPS Office: Download WPS Office Free from the official website and install it on your computer.
  2. 2. Open your Excel file: Launch WPS Office Spreadsheets and open the .xlsx or .xls file that contains the date and time columns.
  3. 3. Select your data range: Select all rows and columns that need to move together, including the event name, date, and time columns.
  4. 4. Open Sort: Click the Data tab and choose Sort > Custom Sort.
  5. 5. Add the date and time levels: Set the date column as the first level and the time column as the second level, both in ascending order, then click OK.
Free WPS Office Spreadsheets handles multi-level date and time sorting without a Microsoft 365 subscription.Retains full compatibility with .xlsx, .xls, and .csv files used by Microsoft Excel.Familiar Data tab and Sort dialog make migration from Excel quick and easy.Lightweight office suite with spreadsheet, Writer, and Presentation tools.
microsoft office alternative - wps office

Frequently Asked Questions

Can I sort by time only without moving the dates?

Yes. In the Sort dialog, add the date column as the first level and the time column as the second level. This keeps dates grouped and sorts times within each date.

Why are my times sorting incorrectly even though the order is ascending?

The times may be stored as text instead of real time values. Check the cell format and convert text to time, then open Data > Sort > Custom Sort and sort the time column as a value.

Does WPS Office Spreadsheets support SORT and SORTBY?

SORT and SORTBY are Microsoft 365 and Excel 2021 dynamic array functions. In WPS Office Spreadsheets, use Data > Sort > Custom Sort to achieve the same multi-column sorting result.

How do I sort by multiple columns in WPS Office?

Select your data, click the Data tab, choose Sort > Custom Sort, and add multiple levels using Add Level. Then set the column and order for each level.

Will this sorting method keep all my rows together?

Yes, as long as you select all columns that belong to the same records before opening the Sort dialog, the entire rows move together during sorting.