Shuffle and Sort

The values where sorted incorrectly. Get them back to how they are supposed to be

Input

a,b,c,d,e
a,b,c,d,e
a,b,c,d,e
a,b,c,d,e
a,b,c,d,e

Output

d,e,a,b,c
e,a,b,c,d
a,b,c,d,e
b,c,d,e,a
c,d,e,a,b