Limit and sort together tested