Skip to content

(feat): add secondary ordering by post_title for menu_order#93

Merged
SimonvanWijhe merged 1 commit into
mainfrom
feat/secondary-order
Jun 2, 2025
Merged

(feat): add secondary ordering by post_title for menu_order#93
SimonvanWijhe merged 1 commit into
mainfrom
feat/secondary-order

Conversation

@SimonvanWijhe
Copy link
Copy Markdown
Member

If posts are ordered by menu_order, posts with the same order should be ordered alphabatically.

Before:
Screenshot 2025-05-22 at 11 41 41

After:
Screenshot 2025-05-22 at 12 47 41

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 22, 2025

Coverage report for commit: 6a6f19d
File: coverage.xml

Cover ┌─────────────────────────┐ Freq.
   0% │ ███████████████████████ │ 50.0%
  10% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  20% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  30% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  40% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  50% │ ██████░░░░░░░░░░░░░░░░░ │ 12.5%
  60% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  70% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  80% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  90% │ ██████░░░░░░░░░░░░░░░░░ │ 12.5%
 100% │ ████████████░░░░░░░░░░░ │ 25.0%
      └─────────────────────────┘
 *Legend:* █ = Current Distribution 
Summary - Lines: 27.98% | Methods: 58.70%
FilesLinesMethodsBranches
src/Block
   Block.php--100.00%
   BlockAttributes.php93.18%96.15%100.00%
src/Casts
   IntCast.php50.00%-100.00%
src/Query
   PostQuery.php--100.00%
   QueryInterface.php100.00%100.00%100.00%
src
   QueryBlockServiceProvider.php--100.00%
src/Traits
   Helpers.php100.00%100.00%100.00%
   VersionRetriever.php--100.00%

🤖 comment via lucassabreu/comment-coverage-clover

@SimonvanWijhe SimonvanWijhe merged commit 67e8e38 into main Jun 2, 2025
5 checks passed
@SimonvanWijhe SimonvanWijhe deleted the feat/secondary-order branch June 2, 2025 08:18
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.

4 participants