2nd revision

added percentage sorting