Sorting is now available for all lists created in CafeSync.
CafeSync uses sqlite for the majority of its data storage and retrieval and sorting is done using "Order by" and then specifying the sort order either Ascending or Descending. The changes begin with adding a new variable to the function call.( sortOpt -main.js- ) then I specified a variable called "Sort" and used a switch statement to fill "Sort" with the proper information ( sortOpt Switch -main.js- ) and finally I added the variable "Sort" to the end of the SqL command ( Sort -main.js- )
This code was used both in the saved cards function as well as the temporary cards function as it was copied verbatim from one to the other I will leave it out for brevity.
In the main.qml file I connected the sort button with the function in main.js ( sicon -main.qml ) after creating a variable in the main.qml file called sort.
Added as a way to engage other users quickly, and at the request of one of the users I created a micro blogging service similar to twitter. This is a rather simple implementation currently, but you can now see the latest "Status updates" from other users directly on their card. And set your status via your main area under your card.
CafeSync uses OpenSeed to for chat and micro-blogging as well as numerous other things. OpenSeed is currently under development by Benjamin Flanagin and when ready will be released as a free and open source Networking API.
For the sake of brevity the entire [microblogger.js] (https://github.com/OpenSeedINC/CafeSync/blob/master/microblogger.js) file is used for these services.
In microblogger.js these functions are used for the feature.
these functions are referenced in the Card.qml file as well as Home.qml. Both simply call the functions listed above and display the returned value. Due to inconsistent behavior the function fills a variable cardStatus for latest_log_remote instead of returning the value directly.
More micro-blogging features will be available in the coming updates and will be talked about more heavily then.
Curious about CafeSync and what it does? Check out my other posts here on Utopian and/or SteemIt