nextcloud / nextcloud/ios

Favorite view sorts by upload date, should sort by creation date

Open
#1,611 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

Steps to reproduce

Go to "Favorites"

Expected behaviour

Sorting "from old to new" should sort media data by creation date

Actual behaviour

Seems like data is sorted by upload date

Screenshots

If applicable, add a screenshot showing the issue.

Logs
If applicable, you can post the iOS app or server logs (removing any sensitive information).
Reasoning or why should it be changed/implemented?

The way it is implemented now, favorites are being sort by upload date, which doesn't really reflect reality, since the sequence is pretty arbitrarily, and so "things that happened afterwards" are being displayed "before" in some cases. Sorting by creation date would solve this (like it is implemented in media view, where you can choose between change, creation and upload date).

Environment data

iOS version: e.g. iOS 14.4.1

14.5.1

Nextcloud iOS app version: see More > Settings

3.4.2.0

Server operating system:

Ubuntu

Web server: Apache, nginx

Apache

Database:

MySQL

PHP version:

PHP

Nextcloud version: see Nextcloud admin page

21.0.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the ordering in the Favorites view on the iOS app using media with different creation and upload dates. Trace the Favorites sorting entry point and verify that sorting from old to new uses creation date, then confirm the displayed order matches the media view behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.