Sitelet https://github.com/Hi-Folks/array/pull/48
Skip to content

OrderBy method for the Table Class - #48

Merged
roberto-butti merged 1 commit into
Hi-Folks:mainfrom
RoadSigns:feature/table-order-by
Nov 4, 2022
Merged

roberto-butti merged 1 commit into
Hi-Folks:mainfrom
RoadSigns:feature/table-order-by

Conversation

@RoadSigns

Copy link
Copy Markdown
Contributor

name: orderBy()
about: Order columns inside of the Table

What

This method allows users to order a column inside of the table in ASC or DESC

Checklist

  • implement method
  • write phpdoc for the function
  • write test in tests/TableTest.php
  • execute composer format
  • execute composer test-coverage
  • check if your method has full test coverage
  • add method in changelog
  • update doc/table.md adding a use case of the new method
  • update cheatsheet (examples/cheatsheet-table.php)

@RoadSigns

Copy link
Copy Markdown
Contributor Author

@roberto-butti Just added this functionality since I couldn't a way to order tables via a column 👍

@roberto-butti

Copy link
Copy Markdown
Contributor

Ehi @RoadSigns this is pure Gold 🥇
Thank you! I'm going to merge it into the main branch.

@roberto-butti
roberto-butti merged commit 6b1059f into Hi-Folks:main Nov 4, 2022
@RoadSigns
RoadSigns deleted the feature/table-order-by branch November 6, 2022 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants