Create reusable stack solution

Previous solution, could have only one stack instance.
2nd instance will be needed for CASE statement formatting
Git-ignore more editor's files
Fix 'order by' inside analythical functions

'order by' in 'row_number() over (partition by x order by y)' should not be formatted in same way as 'order by' that sorts the result of the query
Remove redundant variable
Fix 1-line-comment on last line formatting

Usualy 1-line-comment ends with new line, except one exception:
 1-line-comment ends with file end