added default sorting option
replaced templateUrl with template, so that we can specify the template inline