modify battle index to look for params and sort by user_id if present