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

ordering of files retrieved from /content #7

Open
mmelon opened this issue May 18, 2023 · 1 comment
Open

ordering of files retrieved from /content #7

mmelon opened this issue May 18, 2023 · 1 comment

Comments

@mmelon
Copy link

mmelon commented May 18, 2023

Hi,

I am using a modified older version. It always pulled the posts out in the right order before my site moved server. Now the posts come out in a consistent but not newest descending order. Do you have any idea why the directoryIterator loop would change the order of the files retrieved? I am using YYYY-MM-DD

@paintedsky
Copy link
Owner

Hey, sorry for the late reply! I read the email notification and then completely forgot about it, until I had occasion to look at the repo again today (hashtag adhd).

It definitely sounds like there's some weird difference between your old server and new server, but diagnosing what that difference is might be annoying.

Since you said you're on a modified older version, perhaps you could just modify it a bit more to add part of the latest update, the bit that manually sorts posts to avoid these sorts of issues?

There's only two little bits of code you'd need to add:

Would that be a workable solution for you?

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

No branches or pull requests

2 participants