When sorting by "Recent Data", the following is used: (descending Goal.lastTouch followed by ascending Goal.urgencyKey)
|
case Constants.recentDataGoalSortString: |
|
return [ |
|
NSSortDescriptor(keyPath: \Goal.lastTouch, ascending: false), |
|
NSSortDescriptor(keyPath: \Goal.urgencyKey, ascending: true), |
|
] |
The ambiguity arises between what "data" in "Recent Data" means with regard to which "data" of a goal might be meant. Does "Recent Data" refer to daystamp of datapoints across the goals? Does it refer to any aspect of a goal being touched (its datapoints, its commitment settings, its reminders, and so on)? What about when a datapoint is removed from a goal but this happened more recently than other actions? This probably counts as "this goal and its data and settings has been touched/modified in some way".
How can the app sort the goals in the gallery by their most recent datapoints / daystamps?
When sorting by "Recent Data", the following is used: (descending Goal.lastTouch followed by ascending Goal.urgencyKey)
BeeSwift/BeeSwift/Gallery/GalleryViewController.swift
Lines 515 to 519 in 709adea
The ambiguity arises between what "data" in "Recent Data" means with regard to which "data" of a goal might be meant. Does "Recent Data" refer to daystamp of datapoints across the goals? Does it refer to any aspect of a goal being touched (its datapoints, its commitment settings, its reminders, and so on)? What about when a datapoint is removed from a goal but this happened more recently than other actions? This probably counts as "this goal and its data and settings has been touched/modified in some way".
How can the app sort the goals in the gallery by their most recent datapoints / daystamps?