memos icon indicating copy to clipboard operation
memos copied to clipboard

Sort memos by updatedTs

Open Zeng1998 opened this issue 2 years ago • 8 comments

Is your feature request related to a problem?

I'm sure this is necessary for some users.

Describe the solution you'd like

It is expected to select the sorting way directly on the home page.

There is no good implementation for now. I think it depends on the query API on the backend.

Additional context

No response

Zeng1998 avatar Mar 05 '23 00:03 Zeng1998

I need this feature too! Thanks a lot.

moulai avatar Mar 08 '23 07:03 moulai

Would like to work on this. Please assign !

titanventura avatar Mar 09 '23 01:03 titanventura

Im thinking of giving this as a preference to the user. They can upsert remote setting in the preferences page and in the backend, the list memos endpoint can return memos either in sorted or unsorted way based on the preference. Please let me know if this approach is fine to work on.

titanventura avatar Mar 12 '23 10:03 titanventura

or probably a better option would be to keep the preference locally and use a query param for sorting in the MemoFind object.

titanventura avatar Mar 12 '23 10:03 titanventura

In fact, it was implemented in the old versions, you can refer to it.

Zeng1998 avatar Mar 13 '23 01:03 Zeng1998

may i know which issue/commit/PR to refer to for this ?

titanventura avatar Mar 25 '23 13:03 titanventura

#312

Just for reference, feel free to try by yourself.

Zeng1998 avatar Mar 28 '23 01:03 Zeng1998

should i implement the sorting logic in the frontend or in the backend ?

titanventura avatar Mar 29 '23 17:03 titanventura