revised sorting method to be different from examples, basic css added