nicolas-raoul/Anki-Android — pull request #67 by zyzor (2011-12-26 07:25:17+00:00)
Title: fixed issue 874

Hello,

I just fixed issue 874 (card sorting not working). I found that this problem was caused by the fact that labels of buttons which are used to sort cards are in order: "by question, by answer, ..." (those labels are defined in res/values/07-cardbrowser.xml), but constants CARD_ORDER_* (defined in CardBrowser.java) are defined in order "by answer, by question, ...". I hereby propose to change the order of those constants, because this way we have to change only in one place.
The situation is complicated by the fact that in one translation (German one, in res/values-de/07-cardbrowser.xml) the order of labels is "by answer, by question, ...". So in my commit I revert this order so it goes like in other languages. I checked that in most of other languages (ca, cs, de, es, fr, it, nl, pl, pt, ro, ru, sr, sv - the rest I couldn't check cause I don't understand them at all) the order of labels in 07-cardbrowser.xml is the same as in default, English version.

Piotr Sobolewski
piotr_sobolewski@o2.pl