add class(es) for sorted set of distinct numbers