dingoblog / dingo

Blog engine written in Go
MIT License
284 stars 34 forks source link

Latest published post should be top #47

Closed nak3 closed 8 years ago

nak3 commented 8 years ago

Current published blog posts are descending order by created date(time). Welcome Post (Welcome to Dingo!) always comes to the Top post.

dinever commented 8 years ago

Hi @nak3,

Sorry for the late response to this, I am a little bit busy with my final exams during these two weeks. 😸

Seems that we can not use placeholder ? to specify the ORDER BY values. Maybe we should insert it using fmt.Sprintf.

Reference: stackoverflow.com/a/30867686/1983467

nak3 commented 8 years ago

@dinever Thank you! I'm sorry It was my mistake X( Thank you for your fix!