Sort = "created_utc" didnt sort results properly
Opened this issue · 1 comments
grejty commented
My code looks like this:
gen = list(api.search_submissions(q="fire",
sort="created_utc",
order="desc",
subreddit=subreddit,
filter=['id'],
limit=None))
for pmaw_submission in gen:
praw_submission = reddit.submission(id=pmaw_submission['id'])
print(datetime.utcfromtimestamp(praw_submission.created_utc))
Returns the following: https://pastebin.com/Y91fYYDy
You can see the years are not in order, otherwise, it kinda looks ordered, if we talking days/time only
Any idea why is this happening / how to fix this? Thanks
grejty commented
Overall, the query is returning submission in different order everytime it's ran