Sorting posts by status fix

Check always failed due to type mismatch
line: post.get("active") is sorter
would check for: 1 === "1"