mickstar / Zoo-For-Zotero

This is an Android app for viewing Zotero libraries.
573 stars 53 forks source link

sort by date breaks for some date formats #125

Open mhinsch opened 3 years ago

mhinsch commented 3 years ago

If the date field contains the month and the year, e.g. 12/2014, it seems the 12 is interpreted as the (beginning of?) the year.

mickstar commented 3 years ago

Yes it's very difficult to sort dates in zotero because the dates are so inconsistent, I will add some logic to try to pull out the year from the date.

Is MM/YYYY used in your library?

mhinsch commented 3 years ago

Yes it is, but not intentionally. For some publication types zotero seems to think that sub-year information is relevant. Personally I've never encountered a situation where I need that information so I try to remove anything but the year whenever I notice, but maybe there are people who actually do need it.

mickstar commented 3 years ago

Sure, I will add some regex to pull out 4 digit numbers and make that the most important number for sorting

On Thu, 28 Jan 2021, 00:58 Martin Hinsch, notifications@github.com wrote:

Yes it is, but not intentionally. For some publication types zotero seems to think that sub-year information is relevant. Personally I've never encountered a situation where I need that information so I try to remove anything but the year whenever I notice, but maybe there are people who actually do need it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mickstar/Zoo-For-Zotero/issues/125#issuecomment-768302599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAV2V6GMQH4I2EB7BM5V2TS4ALW5ANCNFSM4WSLNQ3Q .