improve episode sorting