# Is there an alternative to 'Sort by Date'?

**URL:** <https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943>\
**Category:** Ask for Help\
**Created:** [October 6, 2019, 4:47pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943 "2019-10-06T16:47:40Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![imorris](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/imorris/32/408_2.png) [@imorris](https://community.glideapps.com/u/imorris)\
**Post date:** [October 6, 2019, 4:47pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/1 "2019-10-06T16:47:40Z")

</div>

Receiving conflicting info and hope to resolved today as many of my app builds are based on “Future Follow-Update or Task Due Date”. I’ve also searched in our Community and found various answers but so far, nothing is working correctly.

I posted some of the issues I was having and was told 1/by @david - didn’t think the app can sort by date yet, 2/other developers told me it will sort only using yearmonthdate.

I tried the yr/mnth/date and it sorted fine until I entered an older date which went to the top (2019-09-17 vs 2019-12-31) I had the sort in descending order where 12 short have sorted first.

If the date can’t be used, there must be something that can work to capture a “future date” that is entered on the app only, not on google sheet.

Would GREATLY appreciate if someone who has a sure solution contact me either here or privately as this is a Show-Stopper for my largest client if not resolved.

Thanks!

---

<div class="post-metadata">

**Author:** ![George\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_b/32/534_2.png) [@George\_B](https://community.glideapps.com/u/George_B)\
**Post date:** [October 6, 2019, 5:13pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/2 "2019-10-06T17:13:33Z")

</div>

Just create a column along side your date column called whatever you want, maybe DateString. Then in the app sort by that column. Here is a picture of what it would look like

 ![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/1X/eb3fde45af239144e04cd1dff192d0265cc3340f.png)

---

<div class="post-metadata">

**Author:** ![imorris](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/imorris/32/408_2.png) [@imorris](https://community.glideapps.com/u/imorris)\
**Post date:** [October 6, 2019, 6:58pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/3 "2019-10-06T18:58:30Z")

</div>

@George_B You’re the best!!!

Is the “date string” how the user should enter the new updated date on their app?

Thank you 👍

---

<div class="post-metadata">

**Author:** ![George\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_b/32/534_2.png) [@George\_B](https://community.glideapps.com/u/George_B)\
**Post date:** [October 6, 2019, 7:01pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/4 "2019-10-06T19:01:27Z")

</div>

No. When you create the Add screen you would select a date picker component and point it to the actual date column. That other column is only for the sorting purposes.

---

<div class="post-metadata">

**Author:** ![Juha](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@Juha](https://community.glideapps.com/u/Juha)\
**Post date:** [October 6, 2019, 8:20pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/5 "2019-10-06T20:20:59Z")

</div>

Thanks for this! As a Finnish, I also needed this.

---

<div class="post-metadata">

**Author:** ![imorris](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/imorris/32/408_2.png) [@imorris](https://community.glideapps.com/u/imorris)\
**Post date:** [October 7, 2019, 6:45pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/6 "2019-10-07T18:45:23Z")

</div>

@George_B If I just reformat the date column with the year-month-date format in Google sheets… it sorts correctly but as soon as new entry goes in… drops to bottom of their app. Using your suggestions now. Thanks again!  
Update 10/7/19 - Look at difference in date format now from first to last entry. Didn’t work. It’s posting to the bottom of app (descending option) and always includes a time stamp which i do not want. If I “re-format” my date column in google sheets, it sorted properly and then it drops the time but is not sorting correctly after doing the above suggestions. (I should be selling… not making apps! 🤔  
 ![2019-10-07_1718](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/1X/caf451017cf0b8875ae395562d9ba1ea307e0d31.png)

---

<div class="post-metadata">

**Author:** ![MegannLock](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/megannlock/32/19680_2.png) [@MegannLock](https://community.glideapps.com/u/MegannLock)\
**Post date:** [October 7, 2019, 9:26pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/7 "2019-10-07T21:26:43Z")

</div>

Here’s an idea that piggy backs on @George_B’s helper column idea. You could use Helper TABS for display purposes. This is my workaround for an Admin app I use often. I use the DATEVALUE formula as my formatting method. Then the options are endless with sorting if you use a QUERY or FILTER formula on additional tabs that would be for display only. If you want users to edit/update task status, then you could use the Form button and have that data sent to the “Tasks” tab. Check out this example: [Tasks Sorted by Due Date & Status](https://docs.google.com/spreadsheets/d/10tueCeABZ8u830RcbMpca1d1eTDrRCxOXFBVDxVkX04)

---

<div class="post-metadata">

**Author:** ![imorris](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/imorris/32/408_2.png) [@imorris](https://community.glideapps.com/u/imorris)\
**Post date:** [October 7, 2019, 10:59pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/8 "2019-10-07T22:59:21Z")

</div>

@Dave_McManus  
Per our conversation.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 7, 2019, 11:05pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/9 "2019-10-07T23:05:14Z")

</div>

I think you are trying to use the spreadsheets column format option. You shouldn’t have to do that. Refer to our private conversation where I show you the formula for the helper column. Don’t use the sheets formatting. You should be writing the the original date column, but displaying and sorting by the helper column. Unless there’s an issue with the delay in the helper column updating in the app, I think it should work, but I think you are handling the formatting wrong.

---

<div class="post-metadata">

**Author:** ![imorris](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/imorris/32/408_2.png) [@imorris](https://community.glideapps.com/u/imorris)\
**Post date:** [October 9, 2019, 3:21pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/10 "2019-10-09T15:21:45Z")

</div>

… and I’m still here with the same issue and I can’t risk losing a client for a 2 minute fix. My expertise is identifying customer needs and providing solutions as a former turnaround consultant for many years. I really need a “Glideapps Pro” to just look at my screen for 2 minutes and show me what is wrong. This is why I need to focus on marketing with high volume customers and have an IT team sharing in the revenue. Several of the Community members have been extremely helpful and I thank you.  
Still fighting The Date issue. I did the string column and appears I have set-up still incorrect. Also cannot have it defaulting to a time… only need the date. Each time the date is changed to next follow up date by user, the 12:00 AM appears.

 ![2019-10-09_1112](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/1X/081bedbb882a882c7a0d5b8860f76c2b16e8402b.png)

---

<div class="post-metadata">

**Author:** ![George\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_b/32/534_2.png) [@George\_B](https://community.glideapps.com/u/George_B)\
**Post date:** [October 9, 2019, 4:13pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/11 "2019-10-09T16:13:01Z")

</div>

Are you sure you are displaying the “datetext” column and not the date column?

---

<div class="post-metadata">

**Author:** ![yinon\_raviv](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yinon_raviv/32/1627_2.png) [@yinon\_raviv](https://community.glideapps.com/u/yinon_raviv)\
**Post date:** [October 9, 2019, 5:42pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/12 "2019-10-09T17:42:28Z")

</div>

Have you tried representing the date as plain number?

The problem with Google sheets (and excel for that matter) is that dated are some time get mixed up.

The good news is that each date can be represented as numbers (date fornat is just format but sheets actually see it as a number)

So, I think that if you create a helper column which include the following formula (placed in the first row under the header to run on all the column):

> | | A | B | C |
> | --- | --- | --- | --- |
> 
> | 1 | User mail | date | Fixed date |
> | --- | --- | --- | --- |
> | **2** | | | {B2:B} |
> | **3** | [Fake1@gmail.com](mailto:Fake1@gmail.com) | 7/24/2019 7PM | 54321 |
> | **4** | [Fake2@gmail.com](mailto:Fake2@gmail.com) | 7/24/2019 6PM | 54320 |

Column C should be formatted as number and in the app you should try and sort by this column.

Let me know if that worked.

---

<div class="post-metadata">

**Author:** ![imorris](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/imorris/32/408_2.png) [@imorris](https://community.glideapps.com/u/imorris)\
**Post date:** [October 11, 2019, 3:27pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/13 "2019-10-11T15:27:12Z")

</div>

Thank you @Jeff_Hager for patiently working with a Non-Techie to resolve. It’s working great now! 👍

---

<div class="post-metadata">

**Author:** ![imorris](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/imorris/32/408_2.png) [@imorris](https://community.glideapps.com/u/imorris)\
**Post date:** [October 14, 2019, 5:09pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/14 "2019-10-14T17:09:39Z")

</div>

OK… I haven’t checked the app all weekend. Go in to add more data and the “date string” is now all blank.  
How can this happen? I will lose clients if this isn’t controlled. Posted this to Community.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 14, 2019, 6:05pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/15 "2019-10-14T18:05:29Z")

</div>

Last issue resolved here:

> [@Date String "Gone!"](https://community.glideapps.com/t/date-string-gone/1173/5):
>
> That’s why I ask if the first record was deleted. This probably removed the formula when the record was deleted. This is why I always have two header rows in my sheets. Row 1 is used for Column Heading Name, and Row 2 is used for formulas. What you need to do is insert an empty row right below the headings, then re-add the formula to cell F2 of the new empty row. You may get an error because you still have the formula you already re-added and is now in cell F3. Just clear out that cell and…

---

<div class="post-metadata">

**Author:** ![Velain](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/velain/32/483_2.png) [@Velain](https://community.glideapps.com/u/Velain)\
**Post date:** [October 29, 2019, 8:14am UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/16 "2019-10-29T08:14:12Z")

</div>

Hello !  
I have the same problem.  
I have a list that I want to sort by date.

If I add a column with a = B2 for example to copy the date and if I format this new column in number format, and that I sort with this column, this is ok.  
But when I want to add a date to my list by the application, this new date is recorded at the bottom of my sheet sheet, after the last formula = B 50! and so I do not have the number format value in my sort column!  
Do you have a solution?  
(my format is the following: Sunday, December 29, 2019 at 15:00:00) (In my sort column I have this format: 43828,63)  
Cordially

---

<div class="post-metadata">

**Author:** ![George\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_b/32/534_2.png) [@George\_B](https://community.glideapps.com/u/George_B)\
**Post date:** [October 29, 2019, 1:11pm UTC](https://community.glideapps.com/t/is-there-an-alternative-to-sort-by-date/943/17 "2019-10-29T13:11:23Z")

</div>

You need to use an arrayformula at the top of the column as talked about in this post.

> [@Using ARRAYFORMULA()'s in Row 1 of your Spreadsheet](https://community.glideapps.com/t/using-arrayformula-s-in-row-1-of-your-spreadsheet/529):
>
> I can’t take credit for this tip but I just found out about this trick/tip by reading a post [here](https://community.glideapps.com/t/if-user-deletes-1st-row-he-loses-array-formula/246). So the “Normal” way of using an ARRAYFORMULA function is to use it in row 2 of a given column. You just have to be careful not to accidentally deleted it, or have a user delete it. So the next idea was to put it in row 2 but not put any other data in the row and then hide or minimize that row. Basically your data for the non ARRAYFORMULA columns would start on row 3. Then I saw the post I’ll l…
