Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added sort methods to util\Collection and data\Collection #35

Merged
merged 2 commits into from
Aug 11, 2011
Merged

Added sort methods to util\Collection and data\Collection #35

merged 2 commits into from
Aug 11, 2011

Conversation

jmccaffrey42
Copy link

This is useful if you want to do application side sorting on data from a RecordSet or DocumentSet. An example would be where you want to display the top N most popular posts ordered by date. To do this you would query the data layer for posts ordered by "popularity" and then limit the query by N. Now you must sort the data by date in your application, using RecordSet::sort('date').

If there is more procedure than simply submitting a pull request to get changes in, let me know :)

This is useful if you want to do application side sorting on data from a
 RecordSet or DocumentSet.  An example would be where you want to displa
y the top N most popular posts ordered by date.  To do this you would qu
ery the data layer for posts ordered by "popularity" and then limit the
query by N.  Now you must sort the data by date in your application, usi
ng RecordSet::sort('date').
@nateabele
Copy link
Member

This needs a bit of cleanup per coding standards. Also, I think a bit of refactoring to reduce if blocks / nesting is in order. Otherwise, good work.

nateabele added a commit that referenced this pull request Aug 11, 2011
Added sort methods to util\Collection and data\Collection
@nateabele nateabele merged commit cf9b2e6 into UnionOfRAD:master Aug 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants