{"action":"created","issue":{"url":"https://api.github.com/repos/yapstudios/YapDatabase/issues/222","labels_url":"https://api.github.com/repos/yapstudios/YapDatabase/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/yapstudios/YapDatabase/issues/222/comments","events_url":"https://api.github.com/repos/yapstudios/YapDatabase/issues/222/events","html_url":"https://github.com/yapstudios/YapDatabase/issues/222","id":110863604,"number":222,"title":"Dynamic sorting","user":{"login":"sbooth","id":9965,"avatar_url":"https://avatars.githubusercontent.com/u/9965?v=3","gravatar_id":"","url":"https://api.github.com/users/sbooth","html_url":"https://github.com/sbooth","followers_url":"https://api.github.com/users/sbooth/followers","following_url":"https://api.github.com/users/sbooth/following{/other_user}","gists_url":"https://api.github.com/users/sbooth/gists{/gist_id}","starred_url":"https://api.github.com/users/sbooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbooth/subscriptions","organizations_url":"https://api.github.com/users/sbooth/orgs","repos_url":"https://api.github.com/users/sbooth/repos","events_url":"https://api.github.com/users/sbooth/events{/privacy}","received_events_url":"https://api.github.com/users/sbooth/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-11T15:33:09Z","updated_at":"2015-10-14T22:46:48Z","closed_at":"2015-10-14T22:29:40Z","body":"I'm converting a Core Data project on Mac OS X to use YapDatabase and while I have most of the basic functionality working I've run in to a few conceptual roadblocks.  Currently I'm struggling with how to sort objects in a view for display in a table (`NSTableView`) based on the the table's `sortDescriptors`.  I've created a view in YapDatabase that contains all of the objects of the type I'd like to display in the table.  I can display them correctly in the table and they are sorted according to the view's sort block.  What is the appropriate way to sort the objects in a different manner?  Is the best solution to register a view on the fly where the sorting block handles sorting using the table's `sortDescriptors`?"},"comment":{"url":"https://api.github.com/repos/yapstudios/YapDatabase/issues/comments/148224982","html_url":"https://github.com/yapstudios/YapDatabase/issues/222#issuecomment-148224982","issue_url":"https://api.github.com/repos/yapstudios/YapDatabase/issues/222","id":148224982,"user":{"login":"robbiehanson","id":304604,"avatar_url":"https://avatars.githubusercontent.com/u/304604?v=3","gravatar_id":"","url":"https://api.github.com/users/robbiehanson","html_url":"https://github.com/robbiehanson","followers_url":"https://api.github.com/users/robbiehanson/followers","following_url":"https://api.github.com/users/robbiehanson/following{/other_user}","gists_url":"https://api.github.com/users/robbiehanson/gists{/gist_id}","starred_url":"https://api.github.com/users/robbiehanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbiehanson/subscriptions","organizations_url":"https://api.github.com/users/robbiehanson/orgs","repos_url":"https://api.github.com/users/robbiehanson/repos","events_url":"https://api.github.com/users/robbiehanson/events{/privacy}","received_events_url":"https://api.github.com/users/robbiehanson/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T22:46:48Z","updated_at":"2015-10-14T22:46:48Z","body":"One of the things on my todo list: [YapDatabaseViewTransaction setSorting:versionTag:]\r\n\r\nWhich would be a way to simply re-sort the existing set. (E.g. the grouping instance remains the same, sorting instance is swapped out, and only a re-sort operation occurs.)"}}