added sorting code to article div