cloudhead / cloudhead/toto

Date sorting of articles on Index Page

Open
#66 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
1.5k
Forks
240
PR merge metrics
No merged PRs in 30d

Description

The issue I am experiencing is this: I created two posts on the same date, the first with a lowercase title, the second with an uppercase title. The index page displays the first post above the second one, giving the impression that the first post was posted after the second one. I believe it is due to the fact that the index is sorted by date, then by slug. Since the page is sorting on the ASCII value of the slug, lowercase letters have a higher value than upper case values. I am going to fork toto and try to come up with a more accurate sorting algorithm for the index page, it might take a few ticks, I'm new to Ruby :]

JLank

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.