implemented movies sorting