Change function declaration order
Implement support for github's compare view