Refactor code, add span for asc, dsc sign.