Added compatibility with Post Order Plugin

The post order plugin which I recommend to use, ironically would break
the home page popular articles widget. Made a patch which fixes the
issue.