Sql Year Function In Python Syntax For Sorting