working on sorting elements
Signed-off-by:Matthew Scaperoth <mscapero@gwu.edu>