hasadna / open-shot

A simple, open question and answer site. Shot being an hebrew acronym for Q&A.
http://localshot.org.il
BSD 3-Clause "New" or "Revised" License
9 stars 30 forks source link

looks like sorting the candidates in list by position isn't displayed #422

Closed polinas123 closed 11 years ago

polinas123 commented 11 years ago

http://localshot.org.il/42/qna/?list=86

בדוגמא הזו ארנון אברמוב מוגדר כ 1 ולא מופיע כ 1 לא לכל המועמדים יש מספר מוגדר אבל מי שיש לו, בעיקר הראשונים, לא מופיע לפי הסדר של הרשימה

tbrisker commented 11 years ago

candidates without ordinal appear before candidate with ordinal.

polinas123 commented 11 years ago

אוי. זה קקי. אפשר לעשות הפוך?

2013/10/14 tbrisker notifications@github.com

candidates without ordinal appear before candidate with ordinal.

— Reply to this email directly or view it on GitHubhttps://github.com/hasadna/open-shot/issues/422#issuecomment-26265577 .

localshot.org.il השו"ת המקומי אתר שאלות ותשובות לבחירות המקומיות בואו. שאלו. השפיעו

tbrisker commented 11 years ago

after checking again seems like there is a problem with ordering even if all candidates do have an ordinal, for example here: http://localshot.org.il/po/list/46

danielhers commented 11 years ago

According to polyorg/models.py line 85, it looks like they're sorted in reverse order of ordinal. Shouldn't it be ascending order? Also, it doesn't seem to agree with the order you showed in the אמת list in תל אביב יפו, where the apparent order is 3,2,1,4.

lotan1 commented 11 years ago

386