Refactor tickets

move ordering to scope, append scope to that line