Add politicians question type
This commit is contained in:
parent
4fe218166f
commit
2893f2bc53
16 changed files with 101 additions and 33 deletions
|
@ -1,2 +1,5 @@
|
|||
module QuestionsHelper
|
||||
def reorder_with_indices(array, indices)
|
||||
array.sort {|a1, a2| indices.index(a1[1]) <=> indices.index(a2[1])}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue