Fixing ordering for mining and mining resume: based on 'date' field of scmlog table instead 'rev' (text) field.