ticket:13 Added test that checks sorting by priority field