Fix the equality operators and the wrong way around ORDER BY statement
Fix the equality operators and the wrong way around ORDER BY statement

lukecahill/Note-keeper,lukecahill/Note-keeper,lukecahill/Note-keeper