Order actions by cards id to hashmap