Factor by grouping

5x^3-5x^2-x+1

Would it be?

(x-1)(5x^2-1)

or

(5x^2-1)(x-1)

Usually the answers are in descending order.

I'd pick the last second one you wrote.