Using ds to ordenate data