Added spec tests for ratings sort