Within my programming project, there exists a dictionary that pairs unique question-ids with their corresponding questions. The issue at hand involves ensuring the order of elements when printing the contents of this dictionary. Each question-id consists of a random 10-digit string and this arrangement must be maintained throughout multiple printings. Should an element be deleted from the dictionary, it is to vanish while preserving the sequential order of remaining elements.
This task seems to necessitate the creation of a custom dictionary class; however, I wonder if there's another way?
var question_dic = {};
question_dic["2186242050"] = "Answer to life, universe and everything?"; //adding a key-value pair
delete question_dic[delete_key]; //remove delete_key key