change the array storake and get methods to dynamic and sort by markup