Blog background should realize the top setting function, but do not know what to control to sort?

  node.js, question

I am a rookie. When using nodejs as a graduation design personal blog, I want the article to have a top-down function. But I don’t know what to control to realize the set-top function. Which great god is willing to give me a simple explanation? ? ?

Set a stay_at_top field to control whether to set the top, which is 1 instead of 0. Output in reverse order with this field