Ranking is based solely on sales. Your book's sales compared to every other book on Amazon. You could consistently sell the same number day after day and your rank will go up and down based on your sales compared to everyone else's. The only way to maintain rank, or climb, is to sell more than the other writers.