add release_id to journal rebuild when journals_table is present

refactor sprint/release sort
Merge pull request #890 from backlogs/release/journals

add release_id to journal rebuild when journals_table is present